Guides
Once you put your setup blocks in place, your end-to-end test becomes not taht different from a component test. And that's great because it means that all the best practices of component testing that you already know still apply in the end-to-end tests! From writing accessibility-first locators to acting and asserting from the user's perspective.
This is a great reminder that all of these testing levels aren't separate, disconnected universes, but instead are different edges of the same thing—automated testing. And the only thing that changes between them is how much you are "zoomed in" or "zoomed out" on your tested system.
When talking about end-to-end testing, you are pretty much zoomed out as you would expect. But despite that, youi still want to focus on testing isolated behaviors—or user journeys. There are a lot of things that may come in the way of that, just due to the sheer amount of the moving parts involved in an end-to-end test.
This is why the setup is extremely important. So in this exercise block, I wanted us to go through the things that can help you elevate your test setup.