-
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.
Add : built html template for the landing page and tested it using vi…
…test,add the fb image as the desktop favicon
- Loading branch information
1 parent
b7d64c2
commit cfaa9aa
Showing
4 changed files
with
157 additions
and
3 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
import { screen, fireEvent } from '@testing-library/react'; | ||
import { customRender } from "../utils/testingUtils"; | ||
import { LandingPage } from '../Page/LandingPage'; | ||
import { LogIn } from '../Auth/LogIn'; | ||
import { SignUp } from '../Auth/SignUp'; | ||
|
||
describe('Landing Page', () => { | ||
test('it should display the header and hero section', () => { | ||
customRender(<LandingPage />); | ||
customRender(<LogIn onLogInSuccessful={() => {}}/>); | ||
customRender(<SignUp onSignUpSuccessful={() => { }}/>) | ||
expect(screen.getByTestId("appName")).toBeInTheDocument(); | ||
|
||
const logInLink = screen.getByTestId("logInLink"); | ||
|
||
fireEvent.click(logInLink); | ||
|
||
expect(screen.getByTestId("loginContainer")).toBeInTheDocument(); | ||
|
||
expect(screen.getByText(/Manage Tasks Effortlessly with Real-Time Efficiency/i)).toBeInTheDocument(); | ||
|
||
const signupLink = screen.getByTestId("signupLink"); | ||
|
||
fireEvent.click(signupLink); | ||
|
||
expect(screen.getByTestId("signUpContainer")).toBeInTheDocument(); | ||
|
||
}) | ||
|
||
test('it should display the features containers and the footer', () => { | ||
customRender(<LandingPage />); | ||
expect(screen.getByTestId("mainFeatures")).toBeInTheDocument(); | ||
expect(screen.getByTestId("features")).toBeInTheDocument(); | ||
expect(screen.getByTestId("footer")).toBeInTheDocument(); | ||
|
||
}) | ||
|
||
|
||
}) |