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

Set locationType to none in tests #2586

Merged
merged 1 commit into from
Nov 30, 2014

Conversation

teddyzeenny
Copy link
Contributor

Fixes #2559

  • Tests should not affect the url so router location should be none
  • Testem requires a base URL

Previously we were setting location to auto in test environment so that we get a <base> tag during build (which testem needs), and then setting it back to none in the startApp helper before running the tests. But that last step was removed, which caused the tests to run with location auto, which breaks reloads.

It might be a bit confusing to set locationType:'auto' in environment.js just to get a <base> tag, when actually the tests would run with locationType: 'none'. So I just set location to none and added a <base> tag anyway.

@rwjblue is it safe to set a <base> tag in location none or was de7c6bc fixing a previous issue?

- Tests should not affect the url so router location should be none
- Testem requires a base URL
@rwjblue
Copy link
Member

rwjblue commented Nov 30, 2014

👍

rwjblue added a commit that referenced this pull request Nov 30, 2014
Set locationType to none in tests
@rwjblue rwjblue merged commit 040e4dc into ember-cli:master Nov 30, 2014
rwjblue added a commit that referenced this pull request Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken livereload for in-browser tests
3 participants