export default { html: `
simple
`, ssrHtml: `
simple
`, async test({ assert, target, window }) { const input = target.querySelector('input'); const button = target.querySelector('button'); const inputEvent = new window.InputEvent('input'); const clickEvent = new window.MouseEvent('click'); input.value = 'foo'; await input.dispatchEvent(inputEvent); assert.htmlEqual( target.innerHTML, `
foo
foo
` ); await button.dispatchEvent(clickEvent); assert.htmlEqual( target.innerHTML, `
foo
clicked
` ); input.value = 'bar'; await input.dispatchEvent(inputEvent); assert.htmlEqual( target.innerHTML, `
bar
bar
` ); } };