rephrase logged out user invite accept message to clarify that the

invite was accepted
This commit is contained in:
Gregor Vostrak
2026-05-20 22:10:10 +02:00
committed by Constantin Graf
parent f9be92894e
commit 12d58ee42c
3 changed files with 7 additions and 5 deletions

View File

@@ -131,8 +131,8 @@ class OrganizationInvitationEndpointTest extends EndpointTestAbstract
// Assert
$response->assertValid();
$response->assertRedirect(route('login'));
$response->assertSessionHas('bannerText', 'Please log in to finish joining the '.$user->organization->name.' organization.');
$response->assertSessionHas('bannerStyle', 'info');
$response->assertSessionHas('bannerText', 'Great! You have accepted the invitation to join the '.$user->organization->name.' organization. Please log in to access it.');
$response->assertSessionHas('bannerStyle', 'success');
// Member was added silently — invitation is consumed.
$this->assertDatabaseHas(Member::class, [
'user_id' => $invitee->getKey(),