Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Jun 4, 2024
1 parent 1ddb2c6 commit 7947d24
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ import '@testing-library/jest-dom'
import Home from './page'

describe('Home Component', () => {
it('renders the Stanford Biodesign Digital Health ENGAGE-HF Web Frontend heading', () => {
it('renders correct button', () => {
render(<Home />)

const headingElement = screen.getByText(
/Welcome to the Stanford Biodesign Digital Health ENGAGE-HF Web Frontend/i,
)
const button = screen.getByRole('button')

expect(headingElement).toBeInTheDocument()
expect(button).toBeInTheDocument()
})

it('renders the Stanford Biodesign Logo', () => {
Expand Down

0 comments on commit 7947d24

Please sign in to comment.