You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that this should actually be removed (except for the fastboot stuff possibly?), since visual tests use the application.hbs template, the wormhole should get rendered using the regular flow.
What might be required though is providing a test setup helper that does render the wormhole for regular rendering tests that don't use the application.hbs template.
What we've done for now as a workaround is not rendering the BasicDropdownWormhole in application.hbs in a testing environment and instead setting up the required HTML ourselves in a test helper:
ArnaudWeyts
changed the title
Remove code that specify different behaviour in tests inside of BasicDropdownWormhole
Remove code that specifies different behaviour in tests inside of BasicDropdownWormhole
Aug 14, 2024
Why
Our visual tests render a duplicate
#ember-testing
container because ofBasicDropdownWormhole
What
ember-basic-dropdown/ember-basic-dropdown/src/components/basic-dropdown-wormhole.ts
Lines 22 to 29 in 39b4a0e
This part of the code will result in the following structure for visual tests:
I believe that this should actually be removed (except for the fastboot stuff possibly?), since visual tests use the
application.hbs
template, the wormhole should get rendered using the regular flow.What might be required though is providing a test setup helper that does render the wormhole for regular rendering tests that don't use the
application.hbs
template.What we've done for now as a workaround is not rendering the
BasicDropdownWormhole
inapplication.hbs
in a testing environment and instead setting up the required HTML ourselves in a test helper:This can then be setup just for rendering tests:
Would love to hear your thoughts on this, and thanks for the work on this project!
The text was updated successfully, but these errors were encountered: