Add multiselect.
This commit is contained in:
parent
843d2a8c7b
commit
b09a072fb9
7 changed files with 235 additions and 21 deletions
|
|
@ -4,12 +4,12 @@ import Home from './home'
|
|||
|
||||
describe('Home component', () => {
|
||||
it('should render task management interface', () => {
|
||||
render(<Home />)
|
||||
expect(screen.getByText(/Tasks/i)).toBeInTheDocument()
|
||||
const mockLoaderData = { tasks: [] }
|
||||
render(<Home loaderData={mockLoaderData} />)
|
||||
expect(
|
||||
screen.getByText(/GTD-inspired task management system/i)
|
||||
screen.getByRole('heading', { level: 1, name: /Tasks/i })
|
||||
).toBeInTheDocument()
|
||||
// TaskList component should be rendered (initially shows loading state)
|
||||
expect(screen.getByText(/Loading.../i)).toBeInTheDocument()
|
||||
// TaskList component should be rendered with empty state
|
||||
expect(screen.getByText(/No tasks found/i)).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue