-
Notifications
You must be signed in to change notification settings - Fork 16
Test form validation in the asset submission process #26
Comments
I think you can assert errors are in the session (error bag): docs. Alternatively, we could use |
@Calinou sorry for the ping, but do you also have problems with fields that uses I have entered correct url pattern, it just has |
looks like there are fields that are required that is missing. godot-asset-library-laravel/tests/Feature/AssetsTest.php Lines 19 to 29 in 131b47a
|
@Demetriex I can't look at fixing unit tests right now. I'm looking at finally adding a Docker setup for development and production, which is more important currently. |
I added basic form testing in 42a5d48, but this doesn't actually check whether the asset is actually present in the database (or whether the form is even valid).
I tried doing this, but it seems Laravel kept resetting the database even if I did the assertions in the same method.
I also don't know how to check for the form validation in an HTTP test, as both valid and invalid forms result in a redirection to the same URL when testing.
The text was updated successfully, but these errors were encountered: