fix tests
This commit is contained in:
parent
2b474437f0
commit
6f638dd9fc
|
|
@ -614,9 +614,6 @@ describe('change privacy', () => {
|
|||
expect(fetch.put).toBeCalledWith(urls.texture.privacy(fixtureSkin.tid)),
|
||||
)
|
||||
|
||||
// temporary workaround for multiple modals exist
|
||||
document.querySelectorAll('.modal')[0].remove()
|
||||
|
||||
expect(queryByText('duplicated')).toBeInTheDocument()
|
||||
expect(queryByText(t('skinlib.setAsPublic'))).toBeInTheDocument()
|
||||
fireEvent.click(getByText(t('general.cancel')))
|
||||
|
|
|
|||
|
|
@ -96,10 +96,7 @@ describe('sign', () => {
|
|||
fireEvent.click(getByRole('button'))
|
||||
await waitFor(() => expect(fetch.post).toBeCalledWith(urls.user.sign()))
|
||||
|
||||
const remainingTime = 24 * 3600 * 1000
|
||||
expect(
|
||||
getByText(scoreUtils.remainingTimeText(remainingTime)),
|
||||
).toBeInTheDocument()
|
||||
expect(getByText(/2[34]\sh/)).toBeInTheDocument()
|
||||
expect(getByRole('alert')).toHaveClass('alert-warning')
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user