Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'split' of undefined error in tests when upgrading to ember 3.13.0 #340

Open
chrisvdp opened this issue Oct 21, 2019 · 1 comment
Labels

Comments

@chrisvdp
Copy link

I upgraded my code base and got the error Cannot read property 'split' of undefined in my test suite in the cookie service. this.get('_document.cookie') returns undefined even though document.cookie has the value auth_redirecting=true

Screen Shot 2019-10-21 at 15 20 52

The failing test is fairly straightforward

  test('should redirect a new user to the routeAfterAuthentication page after they log in', async function(assert) {
    assert.expect(1);
    await visit('/signin');
    await authenticateSession();
    assert.ok(currentRouteName().includes('authenticated'));
    await invalidateSession();
  });
@chrisvdp
Copy link
Author

"ember-simple-auth": "^1.9.2"

@marcoow marcoow added the triage label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants