diff --git a/tests/dummy/app/templates/cookbook.hbs b/tests/dummy/app/templates/cookbook.hbs index 14a5bf317..918898882 100644 --- a/tests/dummy/app/templates/cookbook.hbs +++ b/tests/dummy/app/templates/cookbook.hbs @@ -7,6 +7,11 @@ Material Design requires that a character count is displayed for input elements which have a length restriction. However, when forms have many input elements, some may prefer to display the count only when the element is focused or invalid. This CSS achieves this.
{{code-snippet name="cookbook.no-char-count.scss"}} +\{{paper-dialog}}
+ To use \{{paper-dialog}}
in your integration test you need to define a target for `ember-wormhole`:
+ {{code-snippet name="cookbook.paper-dialog-tests.js"}}
+
Have a great tip or solution for ember-paper
? Submit a pull request on GitHub or discuss it with the team on Slack #e-paper for inclusion here.
diff --git a/tests/dummy/snippets/cookbook.paper-dialog-tests.js b/tests/dummy/snippets/cookbook.paper-dialog-tests.js
new file mode 100644
index 000000000..5d7cb38c8
--- /dev/null
+++ b/tests/dummy/snippets/cookbook.paper-dialog-tests.js
@@ -0,0 +1,12 @@
+moduleForComponent('your-component', 'Integration | Component | your component', {
+ integration: true,
+ beforeEach() {
+ this.$dialog = (selector) => document.querySelector('#paper-wormhole').querySelector(selector);
+ }
+});
+
+test('it displays dialog title', function(assert) {
+ this.render(hbs`