I've been working with Integrated for a small project, and think it's great. However, I started writing a test case for a page which has a file upload, and was at a loss on how I should proceed.
File Uploads may be out of scope for Integrated, or maybe I need to do some extra work and utilize the Selenium Extension rather than the default Laravel one.
Just wondering if anyone has done any functional testing with file uploads, and whether or not Laracasts/Integrated is the right answer for this.
I think Integrated would be fine. In the latest lesson, Jeffrey goes over using custom methods so you might be able to use one to check whether the file has been uploaded correctly.
Maybe it could be extended so you have something like ->andSeeInFileSystem($path) and then a trait similar to DatabaseTransactions that instead clears the file system after the test.
@desloc Thanks for the tip, just watched the latest lesson. I think using a trait for some filesystem stuff is a great idea. Like you said, I could have it clean up the file uploads after the tests run, similar to the DatabaseTransactions trait. Super useful, thanks!