-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Reset test elements instead of emptying them #178
Comments
Hmm. I'm not sure of the right path forward here. I suspect using |
Welp, it looks like |
I think this is good then, following along like the link above should work well. |
So, the issue at hand is that in testing, rootElement is set to More context: So if I have a div I want to test for events, it has to go inside the rootElement, which in testing is |
Closed by #180 |
In our test suite we have a need to set some content in
#ember-testing
before our tests are run. This works fine for the first test, but after any test that usesmoduleFor
, that content is removed as part ofteardownTestElements
.Instead of completely emptying the
#ember-testing
element, I think it would be better to cache the initial state of the element insetupTestElements
and restore it inteardownTestElements
.cc @sangm
The text was updated successfully, but these errors were encountered: