it('can render the contribution table component', function () {
$user = User::factory()->create();
$project = Project::factory()->create(['user_id' => $user->id]);
$deal = Deal::factory()->create(['user_id' => $user->id, 'project_id' => $project->id]);
$project->update(['average_price' => $deal->price]);
Livewire::actingAs($user)
->test(ContributionTable::class, ['project' => $project])
->assertStatus(200);
});
it('can render the contribution table component', function () {
$user = User::factory()->create();
$project = Project::factory()->create(['user_id' => $user->id]);
$deal = Deal::factory()->create(['user_id' => $user->id, 'project_id' => $project->id]);
$project->update(['average_price' => $deal->price]);
Livewire::actingAs($user)
->test(ContributionTable::class, ['project' => $project])
->assertStatus(200);
});