export default { props: { rectColor1: 'green', circleColor1: 'red', rectColor2: 'black', circleColor2: 'blue' }, html: ` `, test({ component, assert, target }) { component.rectColor1 = 'yellow'; component.circleColor2 = 'cyan'; assert.htmlEqual(target.innerHTML, ` `); const circleColor1 = target.querySelector('#svg-1 circle'); const rectColor1 = target.querySelector('#svg-1 rect'); const circleColor2 = target.querySelector('#svg-2 circle'); const rectColor2 = target.querySelector('#svg-2 rect'); assert.htmlEqual(window.getComputedStyle(circleColor1).fill, 'rgb(255, 0, 0)'); assert.htmlEqual(window.getComputedStyle(rectColor1).fill, 'rgb(255, 255, 0)'); assert.htmlEqual(window.getComputedStyle(circleColor2).fill, 'rgb(0, 255, 255)'); assert.htmlEqual(window.getComputedStyle(rectColor2).fill, 'rgb(0, 0, 0)'); } };