Skip to content

Commit

Permalink
Imrpove FE unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed May 28, 2024
1 parent 19eb7cf commit 78d90ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/client/components/ThesisPage/ThesisEditForm.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@ describe('ThesisEditForm', () => {
expect(screen.getByText('Lataa työskentelysopimus')).toBeInTheDocument()
expect(screen.getByText('Lisää ohjaaja')).toBeInTheDocument()

expect(
screen.queryByText('Tutkimussuunnitelma puuttuu')
).not.toBeInTheDocument()
expect(
screen.queryByText('Työskentelysopimus puuttuu')
).not.toBeInTheDocument()
expect(
screen.queryByText('Varmista, että ohjaajien yhteisprosentti on 100')
).not.toBeInTheDocument()
expect(screen.getByRole('button', { name: 'Tallenna' })).toBeEnabled()
})
})
Expand Down

0 comments on commit 78d90ff

Please sign in to comment.