Skip to content

Instantly share code, notes, and snippets.

@joemckie
Created July 22, 2015 11:57
Show Gist options
  • Save joemckie/36e643d8b073a359f668 to your computer and use it in GitHub Desktop.
Save joemckie/36e643d8b073a359f668 to your computer and use it in GitHub Desktop.
var sw = require('selenium-webdriver');
describe("Route: /blog", function () {
var driver;
this.timeout(10000); // Give the requests some time to breathe
before(function (done) {
driver = new sw.Builder().forBrowser('chrome').build();
done();
});
after(function (done) {
driver.quit();
done();
});
describe("/:blog_id", function () {
it('should output the blog post title', function (done) {
driver.get('http://localhost:3000/blog/12345678');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment