Added tests

This commit is contained in:
Constantin Graf
2024-04-15 19:25:09 +02:00
parent feb70910c7
commit eea5a3d01b
8 changed files with 87 additions and 2 deletions

View File

@@ -35,4 +35,16 @@ class ClientResourceTest extends FilamentTestCase
$response->assertSuccessful();
$response->assertCanSeeTableRecords($clients);
}
public function test_can_see_edit_page_of_client(): void
{
// Arrange
$client = Client::factory()->create();
// Act
$response = Livewire::test(ClientResource\Pages\EditClient::class, ['record' => $client->getKey()]);
// Assert
$response->assertSuccessful();
}
}