export default { skip_if_ssr: true, // TODO delete this line, once binding works props: { x: 'initial' }, html: `
x: initial
foo x: initial
bar x: initial
baz x: initial
`, async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); const buttons = [...target.querySelectorAll('button')]; await buttons[0].dispatchEvent(click); assert.equal(component.x, 'p'); assert.htmlEqual(target.innerHTML, `x: p
foo x: p
bar x: p
baz x: p
`); await buttons[1].dispatchEvent(click); assert.equal(component.x, 'q'); assert.htmlEqual(target.innerHTML, `x: q
foo x: q
bar x: q
baz x: q
`); await buttons[2].dispatchEvent(click); assert.equal(component.x, 'r'); assert.htmlEqual(target.innerHTML, `x: r
foo x: r
bar x: r
baz x: r
`); } };