2018-08-13 11:44:50 -07:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
2018-08-12 22:44:01 -07:00
|
|
|
import { urn } from 'wherehows-web/mirage/fixtures/urn';
|
2018-08-13 11:44:50 -07:00
|
|
|
import { render, find } from '@ember/test-helpers';
|
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
2018-08-30 15:54:14 -07:00
|
|
|
import defaultScenario from 'wherehows-web/mirage/scenarios/default';
|
2018-07-27 13:46:30 -07:00
|
|
|
|
2018-08-13 11:44:50 -07:00
|
|
|
module('Integration | Component | datasets/containers/dataset-health', function(hooks) {
|
|
|
|
setupRenderingTest(hooks);
|
2018-08-12 22:44:01 -07:00
|
|
|
|
2018-08-13 11:44:50 -07:00
|
|
|
test('it renders', async function(assert) {
|
2018-08-30 15:54:14 -07:00
|
|
|
defaultScenario(this.server);
|
|
|
|
|
2018-08-13 11:44:50 -07:00
|
|
|
this.set('urn', urn);
|
|
|
|
await render(hbs`{{datasets/containers/dataset-health urn=urn}}`);
|
2018-08-12 22:44:01 -07:00
|
|
|
|
2018-08-13 11:44:50 -07:00
|
|
|
assert.ok(this.element, 'Renders without errors');
|
|
|
|
assert.ok(find('.dataset-health__score-table'), 'renders the health table component');
|
|
|
|
});
|
2018-07-27 13:46:30 -07:00
|
|
|
});
|