Thank you @tim_vdv the below did the trick
\Filament\Facades\Filament::setCurrentPanel(\Filament\Facades\Filament::getPanel('app'));
\Filament\Facades\Filament::setTenant($organization);
But wait.. this still is not the solution, as the livewire helper is not working as expected:
livewire(SomeResource\Pages\ListTextEntries::class)
->assertCanSeeTableRecords($textEntries);
This still gets the wrong route.
Hi Connor,
I do:
$this->get(TenantResource::getUrl(name:'index', panel:'app'))
But it still returns the admin route which is a "route not defined" exception.