Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active October 27, 2015 21:31
Show Gist options
  • Save wilmoore/d9283673c8ccef06853d to your computer and use it in GitHub Desktop.
Save wilmoore/d9283673c8ccef06853d to your computer and use it in GitHub Desktop.
An example test case using WebdriverIO, Mocha, and ES6 Generators
'use strict'
/*!
* imports.
*/
var assert = require('assert')
/*!
* tests.
*/
describe('Functional Tests', () => {
it('google.com title', function * () {
assert.equal(yield browser.url('http://google.com').getTitle(), 'Google')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment