Skip to content
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

[Missing information - dialog] ember-wormhole failed to render into '#paper-wormhole' #630

Closed
Juraci opened this issue Jan 20, 2017 · 5 comments

Comments

@Juraci
Copy link
Contributor

Juraci commented Jan 20, 2017

While creating a integration test for a dialog that was wrapped by my own component I got this error:

Error: ember-wormhole failed to render into '#paper-wormhole' because the element is not in the DOM

Could not find any issue or documentation on why this was happening for the Dialog component in particular.

By reading these tests I learned that for the Dialog tests to work properly I need to manually add this element <div id="paper-wormhole"></div> to my component test. Then it started to work fine.

Would be nice to have a place in the documentation with those special cases, something like "tips and tricks". I'm adding this issue hoping to help anyone that might have stumbled on the same problem.

@miguelcobain
Copy link
Collaborator

@Juraci We do have a cookbook section, that I think fits this info: http://miguelcobain.github.io/ember-paper/release-1/#/cookbook

@Juraci
Copy link
Contributor Author

Juraci commented Jan 20, 2017

Nice I will work on a PR for that.

@miguelcobain
Copy link
Collaborator

We now wormhole to a special container if on testing, so this shouldn't be an issue anymore.

Relevant commit:
26fd088

@kltdwrds
Copy link

kltdwrds commented May 9, 2018

@miguelcobain I'm running an ember acceptance test that attempts to render the dialog on a click event:

  test('can archive an order', async function (assert) {
    await click('[data-test-target="action-additional-menu"]');
    await click('[data-test-target="action-archive-order"] button');
...
}

The render fails:
ember-wormhole failed to render into '#paper-wormhole' because the element is not in the DOM

ember-cli 3.1.1
ember-paper ^1.0.0-beta.4

@Subtletree
Copy link
Collaborator

Subtletree commented May 9, 2018

@kltdwrds Not 100% sure but this PR might fix that: #915

You could also try adding this to your package.json until ember-paper either merges that PR or pins to the versions below:

"ember-basic-dropdown": "^0.33.1",
"ember-power-select": "^1.8.5",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants