The appendTo option provides a target for where to append the reveal and overlay.
This is helpful when testing. Reveal by default will append to the body element. Ember dispatches events to the application root element, which is not the body element in tests.
Using the appendTo option, we can configure the Reveal to append to the .ember-application element during testing so that the events can be properly dispatched.
I think appendTo should be configurable through config/environment level, and at the component level.
The
appendTo
option provides a target for where to append the reveal and overlay.This is helpful when testing. Reveal by default will append to the
body
element. Ember dispatches events to the application root element, which is not thebody
element in tests.Using the
appendTo
option, we can configure the Reveal to append to the.ember-application
element during testing so that the events can be properly dispatched.I think
appendTo
should be configurable throughconfig/environment
level, and at the component level.