Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add connpass link to footer, unit test update #37

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import InstagramIcon from '@mui/icons-material/Instagram';
import LinkedInIcon from '@mui/icons-material/LinkedIn';
import FacebookIcon from '@mui/icons-material/Facebook';
import GitHubIcon from '@mui/icons-material/GitHub';
import EventIcon from '@mui/icons-material/Event';
import FooterIcon from './FooterIcon';


const Footer: FC = () => {
return <Paper sx={{ position: 'static', bottom: 0, left: 0, right: 0 }} elevation={0} aria-label="footer">
<BottomNavigation sx={{ backgroundColor: '#512da8' }}>
<FooterIcon label="Events" icon={<EventIcon />} href="https://womeninsoftware-japan.connpass.com/" />
<FooterIcon label="Instagram" icon={<InstagramIcon />} href="https://www.instagram.com/womeninsoftwarejp/" />
<FooterIcon label="LinkedIn" icon={<LinkedInIcon />} href="https://www.linkedin.com/company/womeninsoftwarejp/" />
<FooterIcon label="Facebook" icon={<FacebookIcon />} href="https://www.facebook.com/womeninsoftwarejp/" />
Expand Down
3 changes: 3 additions & 0 deletions src/components/Footer/__test__/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import Footer from '../Footer'
describe('Footer', () => {
it('should display the Footer with relevant links', async () => {
render(<Footer />)
const events = await screen.findByLabelText('Events')
expect(events).toBeVisible()
expect(events).toHaveAttribute('href', 'https://womeninsoftware-japan.connpass.com/')
const instagram = await screen.findByLabelText('Instagram')
expect(instagram).toBeVisible()
expect(instagram).toHaveAttribute('href', 'https://www.instagram.com/womeninsoftwarejp/')
Expand Down
Loading