-
Notifications
You must be signed in to change notification settings - Fork 184
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
Remove test-specific behaviour for BasicDropdownWormhole #933
Conversation
2f3fe4d
to
7d74566
Compare
@rohitpaulk the code was added in this commit PR #743 ... i have only synced the code parts like it is in ember-basic-dropdown/ember-basic-dropdown/src/components/basic-dropdown.ts Lines 385 to 413 in b078018
Can you add any test that we can see that it works fine also after this changes? |
7d74566
to
9a32335
Compare
@mkszepp thanks for the context! I've added tests for this. The commit you linked to indeed only re-arranges stuff and doesn't alter logic. 067ca88 seems to be where the |
Looks like there a shadow dom test failure, will check shortly! |
@rohitpaulk i have checked why the test fails and its not directly caused with you changes... its because we are adding for shadow dom tests already with a initializer the element (for tests unfortunately there is no better solution) replacing your test
Unfortunately I have no rights to work on your branch, so I had to make a fork Thanks for fixing the issue |
Fixes #931.
I tried reading through the history of this to figure out why it was present, but nothing turned up. The commit that added the test-specific condition was 067ca88.
cc: @mkszepp in case you've got more context on why this was needed?
Reasoning behind removing this: If tests are using
application.hbs
, the component should work as-is. If tests aren't usingapplication.hbs
(component tests for example), the wormhole will need to be setup manually anyway + it'll still need to have the wormhole-specific ID, notember-testing
.