/**
 * Copyright (c) 2015 Alex Grant (@localnerve), LocalNerve LLC
 * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
 */
 /* global it */
'use strict';

var test = require('./sauce-travis');

it('should get home page and navigate to about', function(done) {
  test.state.browser
    .get(test.baseUrl)
    .title()
    .should.eventually.include('Flux React Example')
    .elementByTagName('h2')
    .text()
    .should.eventually.include('Hello World')
    .elementByLinkText('About')
    .click()
    .waitForElementByTagName('h2')
    .text()
    .should.eventually.include('Example About Page')
    .nodeify(done);
});

it('should get about page and navigate to home', function(done) {
  test.state.browser
    .get(test.baseUrl+'/about')
    .title()
    .should.eventually.include('About')
    .elementByTagName('h2')
    .text()
    .should.eventually.include('About')
    .elementByLinkText('Home')
    .click()
    .waitForElementByTagName('h2')
    .text()
    .should.eventually.include('Hello World')
    .nodeify(done);
});
@@ -222,24 +222,48 @@
 -travis');%0A%0A
+var timeoutLink = 150;%0A%0A
 it('should g
@@ -291,21 +291,22 @@
 gate to 
-about
+others
 ', funct
@@ -410,19 +410,8 @@
 de('
-Flux React 
 Exam
@@ -484,35 +484,31 @@
 ly.include('
-Hello World
+Welcome
 ')%0A    .elem
@@ -568,32 +568,45 @@
 ntByTagName('h2'
+, timeoutLink
 )%0A    .text()%0A  
@@ -639,26 +639,270 @@
 de('
-Example About Page
+About')%0A    .title()%0A    .should.eventually.include('About')%0A    .elementByLinkText('Contact')%0A    .click()%0A    .waitForElementByTagName('h2', timeoutLink)%0A    .text()%0A    .should.eventually.include('Contact')%0A    .title()%0A    .should.eventually.include('Contact
 ')%0A 
@@ -967,20 +967,22 @@
 gate to 
-home
+others
 ', funct
@@ -1248,32 +1248,45 @@
 ntByTagName('h2'
+, timeoutLink
 )%0A    .text()%0A  
@@ -1319,19 +1319,960 @@
 de('
-Hello World
+Welcome')%0A    .title()%0A    .should.eventually.include('Example')%0A    .elementByLinkText('Contact')%0A    .click()%0A    .waitForElementByTagName('h2', timeoutLink)%0A    .text()%0A    .should.eventually.include('Contact')%0A    .title()%0A    .should.eventually.include('Contact')%0A    .nodeify(done);%0A%7D);%0A%0Ait('should get contact page and navigate to others', function(done) %7B%0A  test.state.browser%0A    .get(test.baseUrl+'/contact')%0A    .title()%0A    .should.eventually.include('Contact')%0A    .elementByTagName('h2')%0A    .text()%0A    .should.eventually.include('Contact')%0A    .elementByLinkText('Home')%0A    .click()%0A    .waitForElementByTagName('h2', timeoutLink)%0A    .text()%0A    .should.eventually.include('Welcome')%0A    .title()%0A    .should.eventually.include('Example')%0A    .elementByLinkText('About')%0A    .click()%0A    .waitForElementByTagName('h2', timeoutLink)%0A    .text()%0A    .should.eventually.include('About')%0A    .title()%0A    .should.eventually.include('About
 ')%0A 

update functional specs