generated from muratkeremozcan/react-cypress-ts-vite-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
7f7ab97
commit 7252186
Showing
1 changed file
with
53 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,53 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
|
||
import Footer from './Footer'; | ||
|
||
describe('<Footer />', () => { | ||
beforeEach(() => { | ||
render(<Footer />); | ||
}); | ||
|
||
it('should render the footer', () => { | ||
screen.getByTestId('footer'); | ||
}); | ||
|
||
it('should render the line', () => { | ||
screen.getByTestId('line'); | ||
}); | ||
|
||
it('should render the logo', () => { | ||
screen.getByTestId('logo'); | ||
}); | ||
|
||
it('should render contact info', () => { | ||
screen.getByTestId('contact-info'); | ||
}); | ||
|
||
it('should render text "Contato e Endereço"', () => { | ||
screen.getByText('Contato e Endereço'); | ||
}); | ||
|
||
it('should render text "4003-5442"', () => { | ||
screen.getByText('4003-5442'); | ||
}); | ||
|
||
it('should render adress info', () => { | ||
screen.getByTestId('contact-info-adress'); | ||
}); | ||
|
||
it('should render the phone icon', () => { | ||
screen.getByTestId('phone-icon'); | ||
}); | ||
|
||
it('should render the email icon', () => { | ||
screen.getByTestId('email-icon'); | ||
}); | ||
|
||
it('should render the location icon', () => { | ||
screen.getByTestId('location-icon'); | ||
}); | ||
|
||
it('should render auth button', () => { | ||
screen.getByTestId('auth-buttons'); | ||
}); | ||
}); |