Logout route doesn't exist in tests

When I try and test that pages load, as per the docs, on any panel other than the default I get an error saying that the logout route doesn't exist:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route [filament.affiliate.auth.logout] not defined. in /home/tmstores/www/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:479
Symfony\Component\Routing\Exception\RouteNotFoundException: Route [filament.affiliate.auth.logout] not defined. in /home/tmstores/www/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:479
it('can render page', function () {
$this->get(AffiliateResource::getUrl('create'))->assertSuccessful();
});
it('can render page', function () {
$this->get(AffiliateResource::getUrl('create'))->assertSuccessful();
});
Is there something I'm doing wrong? Is there a step required to ensure these routes are registered?
1 Reply
oddvalue
oddvalueOP15mo ago
I think this might be an issue caused by a resource/page existing in multiple panels but I'm not 100% sure of that yet.
Want results from more Discord servers?
Add your server