-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
=
committed
Aug 9, 2023
1 parent
8f0587d
commit 8bdd346
Showing
10 changed files
with
91 additions
and
29 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 |
---|---|---|
@@ -1,7 +1,57 @@ | ||
|
||
|
||
import { screen,render, getByRole, getByText,waitFor, act } from "@testing-library/react" | ||
import userEvent from '@testing-library/user-event'; | ||
import ReactThemeProvider from "@/components/theme/themeReact/reactThemeProvider" | ||
import IsAUserLoggedInProvider from "@/contexts/authContext" | ||
import FireBooksProvider from "@/contexts/fireBooks" | ||
import NotificationProvider from "@/contexts/notificationContext" | ||
import DataProvider from "@/contexts/dataContext" | ||
import BookProvider from "@/contexts/books" | ||
import ThemeLayout from "@/components/theme/themeReact/themelayout" | ||
import Header from "@/components/header/header" | ||
import Footer from "@/components/footer/footer" | ||
import LoginPage from "@/app/login/page"; | ||
import RootLayout from "@/app/layout"; | ||
import SignUpPage from "@/app/signup/page"; | ||
describe('resgister a user tests',()=>{ | ||
describe('rendering tests',()=>{ | ||
it('should have') | ||
it('should enter correct info',async ()=>{ | ||
|
||
let component = null | ||
await act(async()=>{ | ||
component = render( | ||
|
||
<ReactThemeProvider> | ||
<IsAUserLoggedInProvider> | ||
<FireBooksProvider> | ||
<NotificationProvider> | ||
<DataProvider> | ||
<BookProvider> | ||
<ThemeLayout> | ||
{/* <Header/> */} | ||
|
||
<SignUpPage/> | ||
|
||
<Footer/> | ||
</ThemeLayout> | ||
</BookProvider> | ||
</DataProvider> | ||
</NotificationProvider> | ||
</FireBooksProvider> | ||
</IsAUserLoggedInProvider> | ||
</ReactThemeProvider> | ||
|
||
|
||
|
||
) | ||
}) | ||
const LoginLink = component.getByText(/login/i) | ||
expect(LoginLink).toBeInTheDocument() | ||
// await userEvent.type(screen.getByLabelText(/email/i),"abc@gmail.com") | ||
// expect(screen.getByText(/abc/i)).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
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
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
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
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
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
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
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
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
8bdd346
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hayyim-word – ./
hayyim-word.vercel.app
hayyim-word-williambroberts.vercel.app
hayyim-word-git-main-williambroberts.vercel.app