Testing with Pest keeps giving a 403 response
I'm trying to test my filament (V3) app with pest. I've added the actingAs rule in the setup for TestCase.php as per the documentation. However, when i try to test my ClientResource with the code:
it('can render page', function () {
$this->get(ClientResource::getUrl('index'))->assertSuccessful();
});
I keep getting a 403 on running the test. Any idea what i'm doing wrong?
0 Replies