Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8848163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:21:47+00:00 2026-06-14T12:21:47+00:00

I have an AngularJS application that requires authentication. It’s part of a larger project

  • 0

I have an AngularJS application that requires authentication. It’s part of a larger project served from Express and lives at its own base path: <base href="/path/to/app/">, not /. The existing application already has a round trip login. Users need to be logged in before they can access the Angular app. This works fine, except for e2e testing with testacular.

With authentication on the server disabled, e2e tests run without problems. For example:

describe 'protected app', ->

  it 'should display the index', ->
    browser().navigateTo '/path/to/app'
    expect(browser().location().url()).toBe '/'

  it 'etc...'

Obviously, with server side authentication, this will fail. We need to be logged in first. We get the following error:

Sandbox Error: Application document not accessible.

The problem comes when we try to log in within our scenarios.

describe 'protected app', ->

  it 'should authenticate', ->
    browser().navigateTo '../login'
    #input('#email').enter('admin@example.com')
    #input('#password').enter('secret')
    #element('button').click()    

  it 'should display the index', ->
    browser().navigateTo '/path/to/app'
    expect(browser().location().url()).toBe '/'

  it 'etc...'

Running this (with or without filling out the form and clicking) results in the login page loading and freezing up. Testacular never completes its run, it just hangs on the login page.

Is there a flaw in my understanding of Angular/Testacular/e2e testing or perhaps a bug?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:21:48+00:00Added an answer on June 14, 2026 at 12:21 pm

    Vojta says this is not a Testacular issue. The problem is that the Angular scenario runner doesn’t support full page reloads.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application built using AngularJS and a server-side backend that delivers all
I am working on single-page AngularJS application that doesn't have any backend but use
I am learning AngularJS and have built a small application. Now that it's functionally
I am learning AngularJS and have built a small application. Now that it's functionally
I am using Angularjs for a web application. I have tried searching to find
I have the AngularJS seed project and I've added $locationProvider.html5Mode(true).hashPrefix('!'); to the app.js file.
I have an AngularJS app that returns a list of json objects and I
I have some procedural javascript code that I have written for an open-source application
There is a lot of reusable functionality that I have defined in my application
I have an AngularJS directive that renders a collection of entities in the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.