1
0
Fork 0

Add Traefik Hub demo in dashboard

This commit is contained in:
Gina A. 2025-10-27 17:40:06 +01:00 committed by GitHub
parent 10be359327
commit db4f262916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 2481 additions and 622 deletions

View file

@ -39,10 +39,13 @@ describe('<UdpRoutersPage />', () => {
.spyOn(useFetchWithPagination, 'default')
.mockImplementation(() => useFetchWithPaginationMock({ pages }))
const { container, getByTestId } = renderWithProviders(<UdpRoutersPage />)
const { container, getByTestId } = renderWithProviders(<UdpRoutersPage />, {
route: '/udp/routers',
withPage: true,
})
expect(mock).toHaveBeenCalled()
expect(getByTestId('UDP Routers page')).toBeInTheDocument()
expect(getByTestId('/udp/routers page')).toBeInTheDocument()
const tbody = container.querySelectorAll('div[role="table"] > div[role="rowgroup"]')[1]
expect(tbody.querySelectorAll('a[role="row"]')).toHaveLength(3)
@ -76,6 +79,7 @@ describe('<UdpRoutersPage />', () => {
pageCount={1}
pages={[]}
/>,
{ route: '/udp/routers', withPage: true },
)
expect(() => getByTestId('loading')).toThrow('Unable to find an element by: [data-testid="loading"]')
const tfoot = container.querySelectorAll('div[role="table"] > div[role="rowgroup"]')[2]