Welcome to Testing LiveView!
Hi, and welcome to Testing LiveView.
Throughout the course, we’ll look at many different LiveViews and how to test them.
Each lesson’s code is stand-alone. That means that for each lesson, we’ll be looking at a new LiveView and writing new tests.
But the concepts build upon each other.
Access to code
In the next section, you’ll get instructions for getting access to the code.
Once you have the code, you’ll notice that for each lesson I wrote two test files:
- A “normal” test file that matches the filepath of the LiveView in question.
- A second test with a similar filename but that ends with
done_test.exs.
The normal test file is mostly empty. That’s the blank canvas where we’ll write our tests.
The second test file is your cheat sheet, which you should reference freely.
That’s the file that includes the completed tests we’ll write for any given lesson.
So, if you’re ever stuck, give the “done” test a look.
With that out of the way, let’s get started!