The shared code path is attractive, and the cross-platform screenshot checks are a useful safeguard. For PDF regressions, I’d also vary fonts and locale in the fixtures and test actual print output; matching viewer renders do not always guarantee the print pipeline behaves the same way.