Last active
March 26, 2016 14:15
-
-
Save klamping/e923a9ef212d5eddd899 to your computer and use it in GitHub Desktop.
synchronous code fails with .only
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
| var chai = require('chai'); | |
| var expect = chai.expect; | |
| describe('Landing Page', function() { | |
| beforeEach(function () { | |
| browser.url('http://webdriver.io.s3-website-eu-west-1.amazonaws.com/'); | |
| }); | |
| it.only('should have the right title', function () { | |
| var title = browser.getTitle(); | |
| console.log(title); // returns { state: 'pending' } | |
| }); | |
| }); |
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
| var chai = require('chai'); | |
| var expect = chai.expect; | |
| describe('Landing Page', function() { | |
| beforeEach(function () { | |
| browser.url('http://webdriver.io.s3-website-eu-west-1.amazonaws.com/'); | |
| }); | |
| it('should have the right title', function () { | |
| var title = browser.getTitle(); | |
| console.log(title); // returns 'WebdriverIO - Selenium 2.0 javascript bindings for nodejs' | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment