import moduleForComponent from 'web-client/tests/helpers/module-for-component';
import { test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('vod-coview-dismiss-modal', 'Integration | Component | vod-coview-dismiss-modal');

test('render then cancel modal', function(assert) {
  assert.expect(2);

  this.render(hbs`
    {{vod-coview-dismiss-modal}}
  `);

  assert.elementText(this.$('h4'), 'Tell Us Why', 'Modal title rendered');
  assert.elementText(this.$('button:first'), 'Done', 'Cancel button labeled properly');
});
