Skip to content

Commit

Permalink
Add basic e2e test
Browse files Browse the repository at this point in the history
Running nightwatch tests requires that the latest selenium webdriver JAR
be present at `:project_root:/bin/selenium-server-standaline.jar`. See the
nightwatch [Getting started](http://nightwatchjs.org/guide#installation) page for more information.

Use `npm run e2e` to run the end to end tests.
  • Loading branch information
David Tuite committed Aug 8, 2015
1 parent ec2965f commit 4a27ce9
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 20,981 deletions.
6 changes: 5 additions & 1 deletion .gitignore
@@ -1,4 +1,8 @@
test-bundle.js
.DS_Store
node_modules
example/bundle.js
example/bundle.js
# Process management from the foreman ruby gem.
Procfile
bin/*.jar
__tests__/reports
10 changes: 10 additions & 0 deletions __tests__/e2e/appTest.js
@@ -0,0 +1,10 @@
module.exports = {
'Test content length': function(browser) {
browser
.url('http://localhost:5100')
.waitForElementVisible('body', 1000)
.setValue('.ContentEditable', 'this is some text')
.assert.containsText('#content-length', '126')
.end()
}
};

0 comments on commit 4a27ce9

Please sign in to comment.