Hacker News new | ask | show | jobs
by marinintim 3566 days ago
How do you test presentation components, by comparing with some "ideal" result?
1 comments

Blank state, loading state... Making sure both of these work for the component (if needed).

Top X items and no more being rendered.

If there's a presentation logic like Red/Green for some number using Css classes, I will test that one out as well.

Stuff like that.