-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added more pages to react library tests
- Loading branch information
1 parent
f413035
commit dac0cba
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
}) | ||
}) |