acroninja
Page refresh when header action is clicked
Maybe this will help.
https://discord.com/channels/883083792112300104/1253283839137026109/1353923909832933389
8 replies
Get form dirty state in requiresConfirmation method of an action
Make a trait that extends the updatedInteractsWithForms method,
Add it to your edit page
In my case I wanted to only show the actions when the form is dirty, so use this closure
Note you'll need to add ->live() to the form components
3 replies
Help Us Improve Filament’s Docs & Education in v4
I think the documentation indexing needs some tweaking. Search for databaseNotificationsPolling and nothing found. Goto this page
https://filamentphp.com/docs/3.x/panels/notifications#setting-up-websockets-in-a-panel
and you'll see databaseNotificationsPolling('30s')
Pretty sure this is a common issue with not finding code that is there. That would be a useful fix.
81 replies
Dusk, Cypress or Playwright for filament browser tests?
If anyone interested there are bunch of articles comparing Cypress and Playwright. Gonna try playwright as it also has mobile emulation and ability to work on multiple domains which didn't work on Cypress
https://www.browserstack.com/guide/playwright-vs-cypress
https://www.lambdatest.com/blog/cypress-vs-playwright/
https://medium.com/@mohsenny/deciding-between-cypress-and-playwright-a-comprehensive-guide-4d883d1be147
43 replies
Dusk, Cypress or Playwright for filament browser tests?
Ahha Great, I was leaning that way. range of different browsers tested. we had a really angry email from a firefox user who couldn't login and was very upset that we clearly didn't support alternative browsers as he could login with chrome. Wasnt any bug, just user error from what we could tell!!
43 replies
Dusk, Cypress or Playwright for filament browser tests?
Thanks, you're giving me flashbacks to a traumatic period when this old dinosaur developer that used to work for me argued about everything. I used to hate going into the office at that time, it was a really shit period. Thankfully he doesn't work for me anymore and life is good.
43 replies
Dusk, Cypress or Playwright for filament browser tests?
the unit test won't confirm that the user received an email with a clickable link.
the link then opens a signed url, user does some input and saves form. Another email is sent.
Another user then receives an email with a link to the admin panel to edit the order.
They then need to login, view that order, and enter more stuff, Another email is sent.
Some time passes and the training session should have elapsed.
Now we expect to see another email sent to the coach to confirm if the session was completed or cancelled
43 replies