import { beHidden, beVisible, haveClasses, haveComputedStyle, html, notBeVisible, notHaveClasses, notHaveComputedStyle, test } from '../../utils' test('transition in', html`
thing
`, ({ get }) => { get('span').should(beHidden()) get('span').should(notHaveClasses(['enter', 'enter-start', 'enter-end'])) get('button').click() get('span').should(beVisible()) get('span').should(notHaveClasses(['enter-start'])) get('span').should(haveClasses(['enter', 'enter-end'])) } ) test('transition out', html`
thing
`, ({ get }) => { get('span').should(beVisible()) get('span').should(notHaveClasses(['leave', 'leave-start', 'leave-end'])) get('button').click() get('span').should(beVisible()) get('span').should(notHaveClasses(['leave-start'])) get('span').should(haveClasses(['leave', 'leave-end'])) get('span').should(beHidden()) } ) test('transition:enter in nested x-show visually runs', html`

thing

`, ({ get }) => { get('button').click() get('span').should(beVisible()) get('h1').should(notHaveComputedStyle('opacity', '1')) // We expect a value between 0 and 1 get('h1').should(haveComputedStyle('opacity', '1')) // Eventually opacity will be 1 } )