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.
Merge pull request #94 from cesarhenrq/development
Development
- Loading branch information
Showing
6 changed files
with
83 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 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
import { expect } from '@jest/globals'; | ||
import SaveSearches from './SaveSearches'; | ||
|
||
describe('SaveSearches component', () => { | ||
let container: HTMLElement; | ||
|
||
beforeEach(() => { | ||
container = render(<SaveSearches />).container; | ||
}); | ||
|
||
it('should be defined', () => { | ||
expect(container).toBeDefined(); | ||
}); | ||
|
||
it('to be render SaveButton', () => { | ||
screen.getByText('Salvar busca'); | ||
}); | ||
}); |
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,32 @@ | ||
import Text from '@components/Text'; | ||
import * as S from './styles'; | ||
import * as I from '@assets/db.icons'; | ||
|
||
const SaveSearches = () => { | ||
return ( | ||
<S.Container> | ||
<Text | ||
label={ | ||
<p> | ||
Salve essa busca, te <b>avisaremos por e-mail</b> quando | ||
encontrarmos mais vagas | ||
</p> | ||
} | ||
fontSize="medium" | ||
fontColor="white" | ||
/> | ||
|
||
<S.Button> | ||
<I.Save fill="yellow" width={24} /> | ||
<Text | ||
label="Salvar busca" | ||
fontSize="normal" | ||
fontColor="white" | ||
fontWeight="500" | ||
/> | ||
</S.Button> | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default SaveSearches; |
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 './SaveSearches'; |
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,25 @@ | ||
/* eslint-disable indent */ | ||
import styled from 'styled-components'; | ||
|
||
export const Container = styled.section` | ||
display: flex; | ||
gap: 1.5rem; | ||
padding-top: 2.5rem; | ||
b { | ||
font-weight: bold; | ||
font-style: italic; | ||
} | ||
.text { | ||
justify-content: flex-start; | ||
} | ||
`; | ||
|
||
export const Button = styled.button` | ||
display: flex; | ||
gap: 0.5rem; | ||
background-color: var(--purple-dark-secondary); | ||
border-radius: 0.5rem; | ||
padding: 0.5rem 0.625rem; | ||
`; |
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