<?php

uses(Illuminate\Foundation\Testing\RefreshDatabase::class);

test('authenticated tenant member can load a tenant-scoped Filament page', function () {
    [$user, $tenant] = createUserWithTenant();

    $this->actingAs($user)
        ->get(route('filament.admin.resources.tenants.index', filamentTenantRouteParams($tenant)))
        ->assertOk()
        ->assertSee($tenant->name);
});
