-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
[v5] ember-testing-container is not visible during tests (due to being inside qunit-fixture) #764
Comments
The goal of moving it into the |
Let's go with the latter option (making |
Oh, also, thank you for testing and reporting this! |
@rohitpaulk - Think you might have time to help push this forward? No worries if not, I'm just a bit swamped at the moment and don't want this to fall through the cracks... |
On second thought, I'd prefer to do:
So that |
Yep, I can take a look at this sometime this week!
@rwjblue does that mean that we'd need to bring back the DOM cleanup code that was removed here? |
Yeah. But I think we can do it here instead of inside @ember/test-helpers itself by leveraging the |
Thanks for the pointers! I'm not aware of the @rwjblue what are the downsides to using qunit's cleanup functionality and just overriding |
It seems fairly brittle since they could change their classes / styling at any time and out of our control. I don't feel super strongly here though. I definitely prefer the "elegance" of relying on QUnit for its cleanup. Feel free to PR whichever way seems easier to you, the main goal here is to fix this regression. If fixing it via custom CSS is easier, that seems fine (and we can always come back and change that around if needed in future releases if the QUnit internals change). |
👋
Following the instructions in the Migration Guide for v5.0.0-beta, and looks like where the
ember-testing-container
div is placed has changed.Earlier, it was outside
qunit-fixture
:ember-qunit/index.js
Lines 55 to 60 in 74057af
Now, it is inside
qunit-fixture
:ember-qunit/tests/index.html
Lines 24 to 29 in 7b33387
Here's the relevant commit that made this change.
With the new structure, I don't see
ember-testing-container
visible in the viewport, since qunit's CSS placesqunit-fixture
outside the viewport.It does look like
qunit-fixture
is designed for housing the HTML that's under test, so I'm not sure if the fix is to change the structure to what it was before, or to add additional styling withinember-qunit
to placequnit-fixture
inside the viewport.The text was updated successfully, but these errors were encountered: