import { haveText, html, test } from '../../utils' test('$nextTick runs code on the next available managed tick', html`
`, ({ get }) => { get('span').should(haveText('bar')) get('button').click() get('span').should(haveText('bob')) } ) test('$nextTick waits for x-for to finish rendering', html`

`, ({ get }) => { get('p').should(haveText('2')) get('button').click() get('p').should(haveText('3')) } ) test('$nextTick works with transition', html`

`, ({ get }) => { get('h2').should(haveText('none')) get('button').click() get('h2').should(haveText('')) } )