diff --git a/client/src/pages/Home.jsx b/client/src/pages/Home.jsx index eccffce..f7524ca 100644 --- a/client/src/pages/Home.jsx +++ b/client/src/pages/Home.jsx @@ -13,6 +13,7 @@ import { ShieldCheck, Sparkles, Upload, + ExternalLink, } from 'lucide-react' import Launcher from '../components/Launcher' import { RoomCard } from '../components/RoomCard' @@ -463,6 +464,31 @@ export default function Home() { })} + {/* External links */} + + setCreateOpen(false)} /> setJoinOpen(false)} /> diff --git a/tests/e2e/external-links.spec.ts b/tests/e2e/external-links.spec.ts new file mode 100644 index 0000000..52fd50b --- /dev/null +++ b/tests/e2e/external-links.spec.ts @@ -0,0 +1,14 @@ +import { test, expect } from '@playwright/test' + +test('home footer links out to Flexarion and the GitHub repo', async ({ page }) => { + await page.goto('/') + const footer = page.getByTestId('home-footer') + await expect(footer.getByRole('link', { name: /Flexarion/ })).toHaveAttribute( + 'href', + 'https://flexarion.alwaysdata.net/', + ) + await expect(footer.getByRole('link', { name: /GitHub/ })).toHaveAttribute( + 'href', + 'https://github.com/Androtim/Beacon', + ) +})