actingAs($user); $tenant->makeCurrent(); Filament::setTenant($tenant, true); $connection = ProviderConnection::factory()->create([ 'tenant_id' => $tenant->getKey(), 'status' => 'disabled', ]); $this->get('/admin/provider-connections/'.$connection->getKey().'/edit') ->assertForbidden(); }); it('shows enable connection action as enabled for owner members', function () { [$user, $tenant] = createUserWithTenant(role: 'owner'); $this->actingAs($user); $tenant->makeCurrent(); Filament::setTenant($tenant, true); $connection = ProviderConnection::factory()->create([ 'tenant_id' => $tenant->getKey(), 'status' => 'disabled', ]); Livewire::test(EditProviderConnection::class, ['record' => $connection->getRouteKey()]) ->assertActionVisible('enable_connection') ->assertActionEnabled('enable_connection'); }); });