import { renderToStaticMarkup } from 'react-dom/server'
import { describe, it, expect, vi } from 'vitest'
import { QAPeriodInput } from './QAPeriodInput'
describe('one period value with two input methods', () => {
it('offers a text input and dropdown for both months and ISO weeks', () => {
for (const kind of ['month', 'week'] as const) {
const value = kind === 'month' ? '2026-10' : '2026-W43'
const html = renderToStaticMarkup(
)
expect(html).toContain('type="text"')
expect(html).toContain('