Created
April 30, 2012 16:51
-
-
Save lightsofapollo/2559967 to your computer and use it in GitHub Desktop.
marionette example test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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