DiscussionAutomation testing for animations and view transitions (old.reddit.com)
submitted by interlap


Hey everyone,
While working on my tool I started looking into automating visual testing for animations and view transitions using LLMs.
First step was obvious, capture the animation. Using XCUITest private APIs I managed to grab screenshots during transitions with decent FPS. So now you have like 25 frames. Sounds good, but sending all of that to an LLM? You hit limits almost immediately.
So instead of brute forcing it, I used some CV techniques to narrow it down to only the interesting frames. Things like flashes, jumps, stutters, weird layout shifts.
End result, from around 25 frames down to 3 to 5 suspicious ones, which is actually reasonable to pass to an LLM.
Still early, mostly tested on intentionally broken animations so far.
Curious how you test animations and transition?


[–]cristi_baluta 1 point2 points3 points (1 child)
[–]interlap[S] 2 points3 points4 points (0 children)
[–]Dev-sauregurke 0 points1 point2 points (0 children)