import { haveAttribute, haveComputedStyle, html, test } from '../../utils'
test('can collapse and expand element',
[html`
contents
`],
({ get }, reload) => {
get('h1').should(haveComputedStyle('height', '0px'))
get('button').click()
get('h1').should(haveAttribute('style', 'overflow: hidden; height: auto;'))
get('button').click()
get('h1').should(haveComputedStyle('height', '0px'))
},
)