Adding assertions on DOM state