refactor: rebase on Livewire 4 starter kit

This commit is contained in:
Benjamin Nussbaum 2026-01-15 21:55:24 +01:00
parent 42cbeba4bf
commit 56902e5709
69 changed files with 1967 additions and 942 deletions

View file

@ -13,13 +13,13 @@ test('login screen can be rendered', function (): void {
test('users can authenticate using the login screen', function (): void {
$user = User::factory()->create();
$response = Livewire::test('auth.login')
->set('email', $user->email)
->set('password', 'password')
->call('login');
$response = $this->post(route('login.store'), [
'email' => $user->email,
'password' => 'password',
]);
$response
->assertHasNoErrors()
->assertSessionHasNoErrors()
->assertRedirect(route('dashboard', absolute: false));
$this->assertAuthenticated();