import { haveText, html, test } from '../../utils'
test('can morph components',
[html`
`],
({ get }) => {
get('article h1').should(haveText('foo'))
get('button').click()
get('article h1').should(haveText('yo foo'))
get('button').click()
get('article h1').should(haveText('yoyo foo'))
},
)
test('components within morph retain state between',
[html`
`],
({ get }) => {
get('article span').should(haveText('01'))
get('article button').click()
get('article span').should(haveText('02'))
get('#morph').click()
get('article span').should(haveText('1foo2'))
get('article button').click()
get('article span').should(haveText('1foo3'))
},
)