Filament Test Fails for Force Delete Action but Works in Browser
I'm testing a
Here’s my test code:
And here is the
it works in the browser. However, in the test, it appears that the model is still present in the database, causing
ForceDeleteAction for an organization in a Filament table builder Liveware component using Pest. The functionality works perfectly in the browser but fails during the test, with the error: Here’s my test code:
And here is the
ForceDeleteAction implementation: it works in the browser. However, in the test, it appears that the model is still present in the database, causing
assertModelMissing to fail.Additional Details:
- The
model uses soft deletes.Organization - The database has a
column.deleted_at - The
state in the factory correctly sets thetrashed()
column.deleted_at