Skip to content

Instantly share code, notes, and snippets.

@asciidisco
Created May 7, 2013 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asciidisco/5532057 to your computer and use it in GitHub Desktop.
Save asciidisco/5532057 to your computer and use it in GitHub Desktop.
Test of the fronttrends register page
module.exports = {
'fronttrends register anchor is working': function (test) {
'use strict';
test.expect(6)
.open('http://2013.front-trends.com/')
.assert.chain()
.url('http://2013.front-trends.com/', 'Url is as expected')
.exists('.register-link', 'Register anchor element exists')
.visible('.register-link', 'Register anchor element is visible')
.end()
.click('.register-link')
.assert.url('http://2013.front-trends.com/register/', 'Url of register page is as expected')
.back()
.screenshot('fronttrends_home.png')
.assert.url('http://2013.front-trends.com/', 'Back button works')
.forward()
.screenshot('fronttrends_register.png')
.assert.url('http://2013.front-trends.com/register/', 'Forward button works')
.done();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment