it('hides the company name field when you want to create a new company', function () {
$user = newUser();
$this->actingAs($user);
$company = Company::factory(['owner_id' => $user])->create();
Website::factory(['company_id' => $company])->create();
$livewire = livewire(RegisterWebsite::class);
$livewire->fillForm([
'company_id' => Company::first()->id
]);
$livewire->assertFormFieldIsHidden('company_name');
});
it('hides the company name field when you want to create a new company', function () {
$user = newUser();
$this->actingAs($user);
$company = Company::factory(['owner_id' => $user])->create();
Website::factory(['company_id' => $company])->create();
$livewire = livewire(RegisterWebsite::class);
$livewire->fillForm([
'company_id' => Company::first()->id
]);
$livewire->assertFormFieldIsHidden('company_name');
});