Skip to content

Instantly share code, notes, and snippets.

@mafintosh
Created July 19, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mafintosh/bf9861754284daf51f575f0c2865cb00 to your computer and use it in GitHub Desktop.
Save mafintosh/bf9861754284daf51f575f0c2865cb00 to your computer and use it in GitHub Desktop.
const Button = require('./button')
vhs.delay(1000)('button works', async (t) => {
const btn = new Button('click me!', {
onclick () {
t.pass('i should get nere')
t.end()
}
})
t.element.appendChild(btn.element)
await t.loaded(btn.element)
await t.click(btn.element , 'click button to trigger onclick')
// await t.debugFill(btn.element)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment