you want ui-integration test (stub the network) so...
# best-practices
m
you want ui-integration test (stub the network) so that the content is always the same for your ui test, no matter what the backend state is this might give ideas https://github.com/NoriSte/ui-testing-best-practices/blob/master/sections/real-life-examples/test-front-end-with-integration-back-end-with-e2e.md
20 Views