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
<p>I'm a component</p>
{{#popover-on-componentlazyRenderingEnabled=falseevent='click'}}
<buttonid="my-button"{{action'showLabel'}}>Click me!</button>
{{/popover-on-component}}{{#ifshowLabel}}
<span>I'm visible</span>
{{/if}}
The dummy component has an action that can will be called once the button within the popover is clicked. When running the app on development mode it works, yay!
The problem arises when I create a very simple acceptance test:
The test fails. After investigating this issue for quite a while I'm sure that the click event on the button is not been bubbled to the parent component. I have paused the test and clicked on the button within the popover myself without any results.
The expected result
The test works.
The text was updated successfully, but these errors were encountered:
More information on this: The tooltip is rendered as child of the body tag and and the rootElement of the testing apps is '#ember-testing'. So the tooltip is not a child of the rootElement which prevents events from working.
I installed the addon and ember-tether dependency was not being installed correctly because of the issue above. I ran ember install ember-tether and got 0.3.1 which doesn't allow configuration of the bodyElementId option for ember-tether, hence event bubbling was not working.
I proceeded to install ember-tether manually on version 0.4.0 and everything works as expected.
Hi,
First of all, thanks for all the hard work put on this addon, it's great!
This issue is somehow related to #141.
I've built a dummy app using the latest version of the addon with just one component:
app/components/my-component.js
app/templates/components/my-component.hbs
The dummy component has an action that can will be called once the button within the popover is clicked. When running the app on development mode it works, yay!
The problem arises when I create a very simple acceptance test:
tests/acceptance/reproduce-bug-test
Actual result
The test fails. After investigating this issue for quite a while I'm sure that the click event on the button is not been bubbled to the parent component. I have paused the test and clicked on the button within the popover myself without any results.
The expected result
The test works.
The text was updated successfully, but these errors were encountered: