Created
May 7, 2013 11:59
-
-
Save asciidisco/5532057 to your computer and use it in GitHub Desktop.
Test of the fronttrends register page
This file contains 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
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