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

moduleForComponent('directory/game-details/pc-requirements', 'Integration | Component | directory/game details/pc requirements');

test('it renders', function (assert) {
  this.pcRequirements = {
    minimum: {},
    recommended: {}
  };
  this.render(hbs`{{directory/game-details/pc-requirements pcRequirements=pcRequirements}}`);

  assert.elementText(this.$('.game-details__section-title'), 'Hardware Requirements', 'correct title');
  assert.elementCount(this.$('.specification__list .product__requirements'), 2, '2 requirements sections');
});
