title: Unit test a Frontend Page Reload
body: <p>I have a Web Frontend that persists its state using localStorage.</p>
  
  <p>I.e. the same page is shown to the user upon page reload.</p>
  
  <p>I'd now like to unit test that the page shown after a reload is the same than the page shown before the reload.</p>
  
  <p>Doing <code>window.location.reload()</code> wihtin a jasmine test within the karma runner with PhantomJS throws me an Error 'Some of your tests did a full page reload!'.</p>
  
  <p>Is there a way to have an automated test for a page reload? I'm open to switch test framework, test runner, and test browser.</p>
  
  <p>Thanks!</p>