`,
({ 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
}
)
test('transition duration and delay with and without ms syntax',
html`
ms syntaxblank syntax
`,
({ get }) => {
get('span.ms').should(notBeVisible())
get('button.ms').click()
get('span.ms').should(notBeVisible()) // Not visible due to delay
get('span.ms').should(beVisible())
get('span.ms').should(notHaveComputedStyle('opacity', '1')) // We expect a value between 0 and 1
get('span.ms').should(haveComputedStyle('opacity', '1')) // Eventually opacity will be 1
get('span.blank').should(notBeVisible())
get('button.blank').click()
get('span.blank').should(notBeVisible()) // Not visible due to delay
get('span.blank').should(beVisible())
get('span.blank').should(notHaveComputedStyle('opacity', '1')) // We expect a value between 0 and 1
get('span.blank').should(haveComputedStyle('opacity', '1')) // Eventually opacity will be 1
}
)
test(
'bound x-transition can handle empty string and true values',
html`
thing
`,
({ get }) =>
{
get('span').should(beVisible())
get('span').should(beVisible())
}
);