Skip to content

Instantly share code, notes, and snippets.

@klamping
Last active March 26, 2016 14:15
Show Gist options
  • Select an option

  • Save klamping/e923a9ef212d5eddd899 to your computer and use it in GitHub Desktop.

Select an option

Save klamping/e923a9ef212d5eddd899 to your computer and use it in GitHub Desktop.
synchronous code fails with .only
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' }
});
});
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