/**
 * e2e tests for generic redirects
 */

describe('redirects', function() {

  it('should show a 404 when navigatin to /#/whatever', function() {
    browser.get('/whatever');

    expect(
      browser.getLocationAbsUrl()
    ).toMatch(/\/whatever$/);

    expect(
      element(by.css('main .jumbotron')).getText()
    ).toContain("Page not found");

  });

  it('should go to login when navigated to /#/signin', function() {
    browser.get('/signin');

    expect(
      browser.getLocationAbsUrl()
    ).toMatch(/\/login$/);

  });
});


@@ -93,16 +93,21 @@
  show a 
+soft 
 404 when
@@ -120,18 +120,16 @@
 atin to 
-/#
 /whateve
@@ -359,16 +359,400 @@
 %0A  %7D);%0A%0A
+  it('should show a real 404 for static paths', function() %7B%0A    // there is no angular here, so we have to use the driver directly%0A    browser.driver.get(browser.baseUrl + 'bundle/foo.bar');%0A%0A    expect(%0A      browser.driver.getCurrentUrl()%0A    ).toMatch(/%5C/bundle%5C/foo.bar$/);%0A%0A    expect(%0A      browser.driver.getPageSource()%0A    ).toContain('Cannot GET /bundle/foo.bar');%0A%0A  %7D);%0A%0A
   it('sh
@@ -790,10 +790,8 @@
  to 
-/#
 /sig

add a test for static 404