24 lines
756 B
React
24 lines
756 B
React
|
|
import { describe, expect, it } from 'vitest'
|
||
|
|
import { render, screen } from '@testing-library/react'
|
||
|
|
import { StatusBadge } from '../components/StatusBadge.jsx'
|
||
|
|
import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||
|
|
|
||
|
|
describe('StatusBadge', () => {
|
||
|
|
it('renders known action status', () => {
|
||
|
|
render(<StatusBadge status="blocked" />)
|
||
|
|
expect(screen.getByText('Blockiert')).toBeTruthy()
|
||
|
|
})
|
||
|
|
|
||
|
|
it('renders known initiative status', () => {
|
||
|
|
render(<StatusBadge kind="initiative" status="active" />)
|
||
|
|
expect(screen.getByText('Aktiv')).toBeTruthy()
|
||
|
|
})
|
||
|
|
})
|
||
|
|
|
||
|
|
describe('PriorityBadge', () => {
|
||
|
|
it('renders known priority', () => {
|
||
|
|
render(<PriorityBadge priority="high" />)
|
||
|
|
expect(screen.getByText('Hoch')).toBeTruthy()
|
||
|
|
})
|
||
|
|
})
|