That's the way the user *perceives* that they are logged in - they look at the navbar and see a link to their profile. As a functional test, this treats the website as a black box, submits requests in the user's stead, and examines the results from the user's point of view.