export default { get props() { return { foo: [1], bar: [2], clicked: 'neither' }; }, html: `
clicked: neither
`, async test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const event = new window.MouseEvent('click'); await buttons[0].dispatchEvent(event); assert.equal(component.clicked, 'foo'); assert.htmlEqual( target.innerHTML, `clicked: foo
` ); await buttons[1].dispatchEvent(event); assert.equal(component.clicked, 'bar'); assert.htmlEqual( target.innerHTML, `clicked: bar
` ); } };