Compare commits

..
Author SHA1 Message Date
LarsandClaude Sonnet 5.5 8ecc1ecdaa Verlinke Anmeldung und Registrierung gegenseitig
CI Feature / test (push) Successful in 2m42s
Deploy Test / test (push) Successful in 2m50s
Deploy Test / deploy (push) Successful in 28s
Die Anmeldeseite wies Neukunden nicht auf die Registrierung hin und die
Registrierungsseite nicht auf die Anmeldung. Beide Seiten verlinken sich
jetzt, mit Feature-Tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 17:45:50 +01:00
3 changed files with 18 additions and 0 deletions

No files matched your search

+1
View File
@@ -26,4 +26,5 @@
<button type="submit">Anmelden</button>
</form>
<p><a href="{{ route('password.request') }}">Passwort vergessen</a></p>
<p>Noch kein Konto? <a href="{{ route('register') }}">Jetzt registrieren</a></p>
@endsection
+1
View File
@@ -32,4 +32,5 @@
</label>
<button type="submit">Konto anlegen</button>
</form>
<p>Schon registriert? <a href="{{ route('login') }}">Anmelden</a></p>
@endsection
+16
View File
@@ -123,6 +123,22 @@ public function test_password_reset_sends_a_link(): void
Notification::assertSentTo($user, ResetPassword::class);
}
public function test_login_page_points_new_visitors_to_registration(): void
{
$this->get('/anmelden')
->assertOk()
->assertSee('Noch kein Konto?')
->assertSee('href="'.route('register').'"', false);
}
public function test_registration_page_points_existing_members_to_login(): void
{
$this->get('/registrieren')
->assertOk()
->assertSee('Schon registriert?')
->assertSee('href="'.route('login').'"', false);
}
public function test_guests_cannot_open_the_member_area(): void
{
$this->get('/bereich')->assertRedirect('/anmelden');