Reputation: 91
I'm looking for some help in troubleshooting some very basic ember addon component integration tests and am hoping someone may have an idea where to look to get this sorted out. The tests are included below:
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('my-comp', {
integration: true
});
test('it renders', function(assert) {
this.render(hbs`{{my-comp}}`);
assert.ok(this.$());
});
test('it renders with attribute', function(assert) {
this.render(hbs`{{my-comp title="hi"}}`);
assert.ok(this.$());
});
test('it renders with attribute (again)', function(assert) {
this.set('componentTitle', 'hello');
this.render(hbs`{{my-comp title=componentTitle}}`);
assert.ok(this.$());
});
The addon was created using ember blueprints and all 3 tests pass in the following ember-try scenarios:
Only the tests that have components with attributes fail in the following scenarios:
The error reported for both failing scenarios is the same:
not ok 10 PhantomJS 2.0 - component:my-comp: it renders with attribute
---
actual: >
null
message: >
Died on test #1 at test (http://localhost:7357/assets/test-support.js:1989:15)
at http://localhost:7357/assets/dummy.js:486:19
at http://localhost:7357/assets/vendor.js:150:34
at tryFinally (http://localhost:7357/assets/vendor.js:30:21)
at requireModule (http://localhost:7357/assets/vendor.js:148:15)
at require (http://localhost:7357/assets/test-loader.js:29:16)
at loadModules (http://localhost:7357/assets/test-loader.js:21:25)
at load (http://localhost:7357/assets/test-loader.js:40:35)
at http://localhost:7357/assets/test-support.js:6822:20: Assertion Failed: A helper named 'my-comp' could not be found
Log: |
...
not ok 11 PhantomJS 2.0 - component:my-comp: it renders with attribute (again)
---
actual: >
null
message: >
Died on test #1 at test (http://localhost:7357/assets/test-support.js:1989:15)
at http://localhost:7357/assets/dummy.js:527:19
at http://localhost:7357/assets/vendor.js:150:34
at tryFinally (http://localhost:7357/assets/vendor.js:30:21)
at requireModule (http://localhost:7357/assets/vendor.js:148:15)
at require (http://localhost:7357/assets/test-loader.js:29:16)
at loadModules (http://localhost:7357/assets/test-loader.js:21:25)
at load (http://localhost:7357/assets/test-loader.js:40:35)
at http://localhost:7357/assets/test-support.js:6822:20: Assertion Failed: A helper named 'my-comp' could not be found
Log: |
...
My environment is as follows:
Upvotes: 0
Views: 62
Reputation: 91
The solution to this one was to upgrade ember-qunit from "0.4.9" to "0.4.16".
Upvotes: 1