mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-03-14 20:33:40 +00:00
refactor: rebase on Livewire 4 starter kit
This commit is contained in:
parent
42cbeba4bf
commit
56902e5709
69 changed files with 1967 additions and 942 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue