module.exports = { 'markdown': function (browser) { browser .url('http://localhost:8080/examples/markdown/') .waitForElementVisible('#editor', 1000) .assert.value('textarea', '# hello') .assert.hasHTML('#editor div', '

hello

') .setValue('textarea', '\n## foo\n\n- bar\n- baz') // assert the output is not updated yet because of debounce .assert.hasHTML('#editor div', '

hello

') .waitFor(500) .assert.hasHTML('#editor div', '

hello

\n' + '

foo

\n' + '' ) .end() } }