Skip to content

Fix Ember Inspector during tests for Ember >= 3#855

Merged
teddyzeenny merged 1 commit intoemberjs:masterfrom
teddyzeenny:fix-tests
Aug 3, 2018
Merged

Fix Ember Inspector during tests for Ember >= 3#855
teddyzeenny merged 1 commit intoemberjs:masterfrom
teddyzeenny:fix-tests

Conversation

@teddyzeenny
Copy link
Copy Markdown
Contributor

@teddyzeenny teddyzeenny commented Aug 3, 2018

The primary difference between acceptance tests for Ember < 3 vs Ember >= 3 is that for Ember < 3, every test created a new application + one application instance, whereas in Ember > 3 all the tests use the same application, but a different application instance for each test. The inspector was relying on the application boot, (which only happens once during tests in Ember >=3, and it happens even before the first test starts which was causing the inspector to fail and throw errors as it was starting even before the first application instance was created).

On the plus side, making the inspector only boot on application instance boot (instead of on application boot) also works for prior versions, and feels more "correct", so this should resolve everything everywhere.

Resolves #816
Resolves #818
Closes #846

Copy link
Copy Markdown
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for spending the time to figure this out. It was really stumping me!

@teddyzeenny teddyzeenny merged commit fddb63a into emberjs:master Aug 3, 2018
@teddyzeenny teddyzeenny deleted the fix-tests branch August 3, 2018 17:07
@dandehavilland
Copy link
Copy Markdown

Any chance of a patch-level release to get this in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing in Ember 3.1 Seeing failing tests on /tests route with Ember Inspector open

4 participants