Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Created April 30, 2012 16:51
Show Gist options
  • Select an option

  • Save lightsofapollo/2559967 to your computer and use it in GitHub Desktop.

Select an option

Save lightsofapollo/2559967 to your computer and use it in GitHub Desktop.
marionette example test
suite('github.com', function() {
var device;
startMarionette(function(client) {
device = client;
});
suite('github', function() {
suiteSetup(function() {
this.timeout(10000);
yield device.goUrl('https://gist.github.com/2558934');
});
test('gist owner', function() {
this.timeout(10000);
var el = yield device.findElement('#owner');
var text = yield el.text();
assert.include(text, 'apollo', 'should be james')
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment