export default { props: { clicked: false }, snapshot(target) { const button = target.querySelector('button'); return { button }; }, async test(assert, target, _, component, window) { const button = target.querySelector('button'); await button.dispatchEvent(new window.MouseEvent('click')); assert.ok(component.clicked); assert.htmlEqual( target.innerHTML, `
clicked!
` ); } };