Skip to content

Commit

Permalink
add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edoparearyee committed Jun 10, 2016
1 parent caf003d commit 9fe460c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e/specs/scenarios.js
Expand Up @@ -71,6 +71,11 @@ describe('sn.smartNav', function() {
browser.executeScript('scrollTo(0,300)');
browser.driver.sleep(2000);
expect(secondNav.getAttribute('class')).toContain('affix');

browser.executeScript('scrollTo(0,0)');
browser.driver.sleep(2000);
expect(secondNav.getAttribute('class')).not.toContain('affix');

});

});
Expand Down

0 comments on commit 9fe460c

Please sign in to comment.