mirror of
https://github.com/kremalicious/ipfs.git
synced 2024-11-22 01:37:07 +01:00
test tweak
This commit is contained in:
parent
4fabd65c86
commit
06cfdca8e7
@ -1,11 +1,11 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { render, waitFor, screen } from '@testing-library/react'
|
import { render, screen } from '@testing-library/react'
|
||||||
import Home from '../pages'
|
import Home from '../pages'
|
||||||
|
|
||||||
describe('Home', () => {
|
describe('Home', () => {
|
||||||
it('renders without crashing', async () => {
|
it('renders without crashing', async () => {
|
||||||
render(<Home />)
|
render(<Home />)
|
||||||
await waitFor(() => screen.getAllByTitle('Online').length === 2)
|
await screen.findAllByTitle('Online', undefined, { timeout: 10000 })
|
||||||
expect(screen.getAllByTitle('Online').length).toBe(2)
|
expect(screen.getByText('A public IPFS Gateway')).toBeInTheDocument()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user