export default { html: `
10 of 10
`, ssrHtml: `10 of 10
`, async test({ assert, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, '10'); // should not change because max is 10, input range behaviour // seems there is bug in jsdom (HTMLInputElement-impl) which behaviour is different from real browsers // input.value = '20'; // assert.equal(input.value, '10'); const button = target.querySelector('button'); await button.dispatchEvent(new window.Event('click')); assert.equal(input.value, '20'); assert.htmlEqual(target.innerHTML, `20 of 20
`); }, };