Reviewed-on: #433 Co-authored-by: miteruzo <miteruzo@naver.com>
このコミットはプルリクエスト #433 でマージされました。
このコミットが含まれているのは:
@@ -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' })
|
||||
})
|
||||
})
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする