export default {
html: `
`,
async test({ assert, component, target, window }) {
const click = new window.MouseEvent('click');
let buttons = target.querySelectorAll('button');
await buttons[1].dispatchEvent(click);
assert.htmlEqual(target.innerHTML, `
`);
component.show_medium = true;
assert.htmlEqual(target.innerHTML, `
Large panel
`);
buttons = target.querySelectorAll('button');
await buttons[1].dispatchEvent(click);
assert.htmlEqual(target.innerHTML, `
Medium panel
`);
component.show_medium = false;
assert.htmlEqual(target.innerHTML, `
`);
}
};