export default { skip: true, // selectedOptions doesn't work in JSDOM??? html: `
selected: one
selected: one
`, test ( assert, component, target, window ) { const select = target.querySelector( 'select' ); const options = [ ...target.querySelectorAll( 'option' ) ]; assert.deepEqual( options, select.options ); assert.equal( component.get( 'selected' ), 'one' ); const change = new window.Event( 'change' ); options[1].selected = true; select.dispatchEvent( change ); assert.equal( component.get( 'selected' ), 'two' ); assert.htmlEqual( target.innerHTML, `selected: two
selected: two
` ); component.set({ selected: 'three' }); } };