Skip to content

Commit

Permalink
cleans up comments #15
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcarlisle committed Sep 27, 2016
1 parent 5ff351a commit 87744c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions examples/direct-upload/nightwatch.conf.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// we use a nightwatch.conf.js file so we can include comments and helper functions
module.exports = {
'src_folders': [
'test/e2e'// Where you are storing your Nightwatch e2e tests
],
'output_folder': './reports', // reports (test outcome) output by nightwatch
'selenium': { // downloaded by selenium-download module (see readme)
'selenium': { // downloaded by selenium-download module
'start_process': true, // tells nightwatch to start/stop the selenium process
'server_path': '../../node_modules/nightwatch/bin/selenium.jar',
'host': '127.0.0.1',
'port': 4444, // standard selenium port
'cli_args': { // chromedriver is downloaded by selenium-download (see readme)
'cli_args': { // chromedriver is downloaded by selenium-download
'webdriver.chrome.driver': '../../node_modules/nightwatch/bin/chromedriver'
}
},
Expand Down
5 changes: 1 addition & 4 deletions examples/direct-upload/test/e2e/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ module.exports = {
.waitForElementVisible('body', 1000)
.waitForElementVisible('input#fileInput', 1000)
.pause(1000)
.setValue('input#fileInput', require('path').resolve(__dirname + '/testfile.png')) // Works
// .setValue('input#fileUpload', 'testfile.txt') // Will not work
// .setValue('input#fileUpload', 'http://localhost:3000/testfile.txt') // Will not work
// .setValue('input[type='file']', require('path').resolve(__dirname + '/testfile.txt')) // Will not work
.setValue('input#fileInput', require('path').resolve(__dirname + '/testfile.png'))
.click('#submit')
.pause(1000)
.assert.containsText('h4', 'Image Successfully Uploaded')
Expand Down

0 comments on commit 87744c7

Please sign in to comment.