It depends if I need to copy paste the logic more than once.

And what about have an assertPageContent?

And remember.. a lot more time is spend on reading/maintaining code than writing it. So don't try to reduce writing time if you will be increasing reading time.