アイヌ語追加 (#428) (#433)

Reviewed-on: #433
Co-authored-by: miteruzo <miteruzo@naver.com>
このコミットはプルリクエスト #433 でマージされました。
このコミットが含まれているのは:
2026-10-20 20:44:14 +09:00
committed by みてるぞ
コミット 084a090cab
294個のファイルの変更、13978行の追加、3461行の削除
+9 -4
ファイルの表示
@@ -130,7 +130,9 @@ describe ('PostImportReviewPage', () => {
renderReviewPage (['https://example.com/post'])
fireEvent.click (await screen.findByRole ('button', { name: '追加' }))
const submit = await screen.findByRole ('button', { name: '追加' })
await waitFor (() => expect (submit).toBeEnabled ())
fireEvent.click (submit)
expect (await screen.findAllByText ('登録失敗')).toHaveLength (2)
expect (screen.getAllByText ('invalid title')).toHaveLength (2)
@@ -147,11 +149,14 @@ describe ('PostImportReviewPage', () => {
renderReviewPage (['https://example.com/post'])
fireEvent.click (await screen.findByRole ('button', { name: '追加' }))
const submit = await screen.findByRole ('button', { name: '追加' })
await waitFor (() => expect (submit).toBeEnabled ())
fireEvent.click (submit)
await waitFor (() => {
expect (screen.getByLabelText ('current-location')).toHaveTextContent ('/posts')
expect (screen.getByLabelText ('current-location').textContent).toBe ('/ja/posts')
})
expect (api.apiPost).toHaveBeenCalledWith ('/posts/bulk', expect.any (FormData))
expect (api.apiPost).toHaveBeenCalledWith (
'/posts/bulk', expect.any (FormData), { locale: 'ja' })
})
})