Skip to content

Commit

Permalink
added more pages to react library tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodlilkendey committed May 28, 2024
1 parent f413035 commit dac0cba
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
22 changes: 22 additions & 0 deletions __tests__/ui/tests/schedules.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { render, screen } from '@testing-library/react'
// import { mockTools } from '@/__mocks__/mockData'

import MySchedulesPage from '@/pages/schedules'

describe('My Schedules Page tests', () => {
test('renders a heading', async () => {
render(<MySchedulesPage />)

expect(
screen.getByRole('heading', { name: 'My Schedules' })
).toBeInTheDocument()
})

test('renders a button', async () => {
render(<MySchedulesPage />)

expect(
screen.getByRole('button', { name: 'Create a Schedule' })
).toBeInTheDocument()
})
})
14 changes: 14 additions & 0 deletions __tests__/ui/tests/track.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { render, screen } from '@testing-library/react'
// import { mockTools } from '@/__mocks__/mockData'

import TimeTrackerPage from '@/pages/track'

describe('Time Tracker Page tests', () => {
test('renders a heading', async () => {
render(<TimeTrackerPage />)

expect(
screen.getByRole('heading', { name: 'Time Tracker' })
).toBeInTheDocument()
})
})

0 comments on commit dac0cba

Please sign in to comment.