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
Katiene Souza
committed
Oct 16, 2023
1 parent
3bb1bed
commit 578ff26
Showing
6 changed files
with
67 additions
and
1 deletion.
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,19 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { render, screen } from '@testing-library/react'; | ||
import { expect } from '@jest/globals'; | ||
import VacanciesFound from './VacanciesFound'; | ||
|
||
describe('VacanciesFound component', () => { | ||
let container: HTMLElement; | ||
|
||
beforeEach(() => { | ||
container = render(<VacanciesFound allVacancies={'255'} />).container; | ||
}); | ||
|
||
it('should be defined', () => { | ||
expect(container).toBeDefined(); | ||
}); | ||
it('to be render allVacancies', () => { | ||
screen.getByText('255 vagas encontradas'); | ||
}); | ||
}); |
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,29 @@ | ||
import Text from '@components/Text'; | ||
import * as S from './styles'; | ||
|
||
type props = { | ||
allVacancies: string; | ||
}; | ||
|
||
const VacanciesFound = ({ allVacancies }: props) => { | ||
return ( | ||
<S.Container> | ||
<Text | ||
label={ | ||
<p> | ||
Vagas em <b>React</b> | ||
</p> | ||
} | ||
fontSize="large" | ||
fontColor="purple-dark" | ||
/> | ||
<Text | ||
label={`${allVacancies} vagas encontradas`} | ||
fontSize="medium" | ||
fontColor="dark-gray" | ||
/> | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default VacanciesFound; |
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 @@ | ||
export { default } from './VacanciesFound'; |
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,15 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Container = styled.section` | ||
display: flex; | ||
flex-direction: column; | ||
padding: 3rem 0px 0px 8.438rem; | ||
.text { | ||
justify-content: flex-start; | ||
} | ||
b { | ||
font-weight: bold; | ||
} | ||
`; |
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