Skip to content

Commit

Permalink
Add select test
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed Sep 11, 2019
1 parent e363bb0 commit bd27a11
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/integration/components/dummy-box-test.js
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, findAll, click } from '@ember/test-helpers';
import { render, findAll, click, fillIn } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { percySnapshot } from 'ember-percy';

Expand Down Expand Up @@ -84,6 +84,21 @@ module('Integration | Component | dummy box', function(hooks) {
percySnapshot('textarea with value');
});

test('it snapshots select values', async function(assert) {
await render(
hbs`<select>
<option value="one">One</option>
<option value="two">Two</option>
</select>
`);

await percySnapshot('select without value');
await fillIn('select', 'two');
await percySnapshot('select with value');

assert.ok(true);
});

test('it handles identical assets with different paths', async function(assert) {
await render(hbs`
{{#dummy-box}}
Expand Down

0 comments on commit bd27a11

Please sign in to comment.