question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

[v5] ember-testing-container is not visible during tests (due to being inside qunit-fixture)

See original GitHub issue

šŸ‘‹

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:

https://github.com/emberjs/ember-qunit/blob/74057af23ae6341364ffb851be27bbe3d9ec53e7/index.js#L55-L60

Now, it is inside qunit-fixture:

https://github.com/emberjs/ember-qunit/blob/7b33387dd9a3d8ba88ce49125734357f24f10292/tests/index.html#L24-L29

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 places qunit-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 within ember-qunit to place qunit-fixture inside the viewport.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Nov 4, 2020

@rwjblue what are the downsides to using qunitā€™s cleanup functionality and just overriding qunit-fixtureā€™s styles? Is there a specific reason to avoid that approach?

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).

1reaction
rwjbluecommented, Oct 23, 2020

The goal of moving it into the qunit-fixture was to ensure that QUnitā€™s own cleanup of the DOM post-test takes care of things for us without us having to manually clean things up ourselves (see https://github.com/emberjs/ember-test-helpers/pull/910 for some additional context on the extraneous work that was being done).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions about CUNY's COVID-19 ...
Once test results are processed, you will receive an email notifying you that you are ā€œCleared for Accessā€ by your COVID test or...
Read more >
Extended Time
If a student is usually able to complete school tests in the allotted time, or if the student's inability to complete tests is...
Read more >
2022-23 Oregon Accessibility Manual
Embedded designated supports and accommodations must be assigned to students in the Test Information Distribution Engine (TIDE) within theĀ ...
Read more >
Appendix A Testing Accommodations Questions and Answers
Under no circumstances may calculators with symbol manipulation be made available to students taking Regents Examinations. In addition, calculators that canĀ ...
Read more >
Taking Tests in Blackboard - Blackboard Student Support
If there is no time limit for your test, then the 'Timed Test' instructions will simply be omitted from the entry page. Timer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found