We can use functional e2e UI tests to cover some of the risks
- Go to
com.saucedemo.exercises.E2ETests.java
and finish all of the tests. - Run each test to make sure they work
- At the end, run all tests with
mvn test -Dtest=E2ETests
Rules
✅ Use page objects
✅ One test for one feature
❌ Don't create any new code, simply reuse existing code
Let's walk through the code