export default { data: { x: 'initial' }, html: `

x: initial

foo x: initial

bar x: initial

baz x: initial

`, test ( assert, component, target, window ) { const click = new window.MouseEvent( 'click' ); const buttons = [ ...target.querySelectorAll( 'button' ) ]; buttons[0].dispatchEvent( click ); assert.equal( component.get( 'x' ), 'p' ); assert.htmlEqual( target.innerHTML, `

x: p

foo x: p

bar x: p

baz x: p

` ); buttons[1].dispatchEvent( click ); assert.equal( component.get( 'x' ), 'q' ); assert.htmlEqual( target.innerHTML, `

x: q

foo x: q

bar x: q

baz x: q

` ); buttons[2].dispatchEvent( click ); assert.equal( component.get( 'x' ), 'r' ); assert.htmlEqual( target.innerHTML, `

x: r

foo x: r

bar x: r

baz x: r

` ); } };