CurrentPath vs CurrentURL test helpers


#1

Realized that what I had posted as a seperate bug was maybe just my misunderstanding of the currentURL vs currentPath test helpers or possibly a bug in one of the helpers.

test('unauthenticated', function(assert) {
  visit('/maps');

  andThen(function() {
    //currentPath: "login"
    //currentURL: "/login"
    //onPage: login
  });

  visit('/maps');
  andThen(function() {
    return pauseTest();
    //currentPath: "login"
    //currentURL: "/maps"
    //onPage: login
  });
});

Why would the currentURL be “/maps” in the second case? The actual url that would be dislplayed to the user here is /login which I can verify with a pauseTest()