germsvel / phoenix_test

PhoenixTest provides a unified way of writing feature tests -- regardless of whether you're testing LiveView pages or static (non-LiveView) pages.
https://hex.pm/packages/phoenix_test
MIT License
178 stars 23 forks source link

Add upload/2 to test file uploads #108

Closed ftes closed 2 months ago

ftes commented 2 months ago

Add PhoenixTest.upload/2 to test live and static file uploads.

ftes commented 2 months ago

Rebased and addressed feedback. Good for another review I reckon @germsvel

Side note: Just tried this out in a feature test for a client. Works :) Writing feature tests with phoenix_test is fun!