export default { html: `
`, async test({ assert, target, window }) { const inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, false); assert.equal(inputs[1].checked, false); assert.equal(inputs[2].checked, false); assert.equal(inputs[3].checked, false); assert.equal(inputs[4].checked, false); assert.equal(inputs[5].checked, false); assert.equal(inputs[6].checked, false); assert.equal(inputs[7].checked, false); assert.equal(inputs[8].checked, false); const event = new window.Event('change'); inputs[2].checked = true; await inputs[2].dispatchEvent(event); assert.htmlEqual(target.innerHTML, `z
`); inputs[4].checked = true; await inputs[4].dispatchEvent(event); assert.htmlEqual(target.innerHTML, `z
y
`); inputs[5].checked = true; await inputs[5].dispatchEvent(event); assert.htmlEqual(target.innerHTML, `z
y, z
`); } };