assertTableActionDataSet() on a form with FileUpload field
I got this form:
and this test:
Now, obviously, the part is a string, while the form field is whatever object type FileUpload takes. I've tried to put an UploadedFile fake in there, but to no avail.
Does anyone know how I'd test the FileUpload field?
4 Replies
Did you ever figure this one out? I'm having a similar issue.
Try checking like this, but not sure it will works for you or not https://discord.com/channels/883083792112300104/1331765576812593273/1331834242342195353
I'm afraid not, sorry 😔
So with a little assistance from Copilot, I was able to get it working using the
->set()
method.