feat(auth): add page title to signup screen
Sets <title>Konto erstellen — Mealprep</title> via svelte:head for browser tab and accessibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
import SignupForm from '$lib/auth/SignupForm.svelte';
|
import SignupForm from '$lib/auth/SignupForm.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Konto erstellen — Mealprep</title>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
<!-- Mobile: stacked, Desktop: side by side -->
|
<!-- Mobile: stacked, Desktop: side by side -->
|
||||||
<div class="flex min-h-screen flex-col md:flex-row">
|
<div class="flex min-h-screen flex-col md:flex-row">
|
||||||
<BrandPanel />
|
<BrandPanel />
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ describe('signup page', () => {
|
|||||||
expect(screen.getByText('Mealprep')).toBeInTheDocument();
|
expect(screen.getByText('Mealprep')).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('sets the page title', () => {
|
||||||
|
render(Page);
|
||||||
|
expect(document.title).toBe('Konto erstellen — Mealprep');
|
||||||
|
});
|
||||||
|
|
||||||
it('does not render any navigation chrome', () => {
|
it('does not render any navigation chrome', () => {
|
||||||
render(Page);
|
render(Page);
|
||||||
// No nav element should exist
|
// No nav element should exist
|
||||||
|
|||||||
Reference in New Issue
Block a user