openverse-frontend
openverse-frontend copied to clipboard
Consider SSR vs. CSR in end-to-end tests
Problem
We often have rendering issues that involve discrepancies between the client-side rendered page and the server-rendered version, due to the multiple ways of fetching data with Nuxt and Vue.
Description
Could we find a way to run all of our e2e tests in both SSR and CSR, and compare those images? Maybe something simple like a wrapper that runs each test twice, once directly on the route being tested and once on the route being tested after a client-side navigation from a different page. There might be even simpler ways of doing this that don't involve test changes or setup code.