feat: apply mist instrument interface

This commit is contained in:
2026-07-13 22:19:44 +09:00
parent ed0448e3de
commit 8b4492b739
3 changed files with 324 additions and 124 deletions
@@ -30,6 +30,19 @@ describe('UserForm', () => {
})
describe('SearchForm', () => {
it('uses a labelled grouping for ranking controls', () => {
render(
<SearchForm
initialQuery=""
initialProduct="Latest"
initialFollowing={false}
onSubmit={vi.fn()}
/>,
)
expect(screen.getByRole('group', { name: '並び順' })).toBeInTheDocument()
})
it('submits the selected ranking and follows filter', () => {
const onSubmit = vi.fn()
render(
@@ -75,6 +75,7 @@ describe('PostCard', () => {
})
expect(textLink).toHaveAttribute('target', '_blank')
expect(textLink).toHaveAttribute('rel', 'noreferrer noopener')
expect(screen.queryByRole('link', { name: 'Yuta' })).not.toBeInTheDocument()
expect(screen.getByText('Yuta').closest('a')).toBeNull()
expect(screen.getByText('@yuta').closest('a')).toBeNull()
})