export default { html: `

selected: one

selected: one

`, ssrHtml: `

selected: one

selected: one

`, props: { selected: 'one' }, async test({ assert, component, target, window }) { const select = target.querySelector('select'); const options = [...target.querySelectorAll('option')]; assert.deepEqual(options, [...select.options]); assert.equal(component.selected, 'one'); const change = new window.Event('change'); options[1].selected = true; await select.dispatchEvent(change); assert.equal(component.selected, 'two'); assert.htmlEqual(target.innerHTML, `

selected: two

selected: two

`); component.selected = 'three'; } };