Filament v3 to v4 upgrade testing issues
What I am trying to do:
I am attempting to run existing automated tests
What I did:
I followed the upgrade guide everything seems good.
My issue/the error:
No errors only failing tests.
Basically the functionality works fine when using the app, however the automated test suite is broken, It fails in multiple places that lead me to believe the filament app is not getting bootstrapped... for example a livewire test that checks a form submission on a CreateResourcePage works but the tenant id is not updated. When I add Resource::observeTenancyModelCreation(Filament::getPanel('admin')); in the tests beforeEach method it appears to work again, and certain assertsions such as assertSee('the error message') fail and claim that erorr does not exist, and when viewing that output it appears to not even have the Resource create form. All these tests passed in v3, also worth mentioning I am new to this project and got tasked with this upgrade so there could be some strange gotchas that I am unaware of. I am having a tough time finding the root of how filament gets bootstrapped when running feature tests so any clues would be great.
I am attempting to run existing automated tests
What I did:
I followed the upgrade guide everything seems good.
My issue/the error:
No errors only failing tests.
Basically the functionality works fine when using the app, however the automated test suite is broken, It fails in multiple places that lead me to believe the filament app is not getting bootstrapped... for example a livewire test that checks a form submission on a CreateResourcePage works but the tenant id is not updated. When I add Resource::observeTenancyModelCreation(Filament::getPanel('admin')); in the tests beforeEach method it appears to work again, and certain assertsions such as assertSee('the error message') fail and claim that erorr does not exist, and when viewing that output it appears to not even have the Resource create form. All these tests passed in v3, also worth mentioning I am new to this project and got tasked with this upgrade so there could be some strange gotchas that I am unaware of. I am having a tough time finding the root of how filament gets bootstrapped when running feature tests so any clues would be great.
