Skip to content

Commit

Permalink
Merge pull request #2111 from ethereum/refactorBrowserTests
Browse files Browse the repository at this point in the history
Reorganize test files
  • Loading branch information
yann300 committed Jun 25, 2019
2 parents fdf51b0 + 72628b4 commit 50d23c0
Show file tree
Hide file tree
Showing 9 changed files with 408 additions and 379 deletions.
1 change: 0 additions & 1 deletion ci/makeMockCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ compiler.loadRemoteVersion(defaultVersion, (error, solcSnapshot) => {
if (error) console.log(error)
var compilationResult = {}
gatherCompilationResults('./test-browser/tests/', compilationResult, solcSnapshot)
gatherCompilationResults('./test-browser/tests/units/', compilationResult, solcSnapshot)
replaceSolCompiler(compilationResult, solcSnapshot)
})

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@
"make-mock-compiler": "node ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",
"nightwatch_local": "nightwatch --config nightwatch.js --env local",
"nightwatch_local_general": "nightwatch ./test-browser/tests/generalTests.js --config nightwatch.js --env local ",
"nightwatch_local_recorder": "nightwatch ./test-browser/tests/recorder.js --config nightwatch.js --env local ",
"nightwatch_local_signingMessage": "nightwatch ./test-browser/tests/signingMessage.js --config nightwatch.js --env local ",
"nightwatch_local_sharedFolderExplorer": "nightwatch ./test-browser/tests/sharedFolderExplorer.js --config nightwatch.js --env local ",
"nightwatch_local_debugger": "nightwatch --config nightwatch_debugger.js --env local",
"nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome",
Expand Down
11 changes: 11 additions & 0 deletions test-browser/commands/clickInstance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const EventEmitter = require('events')

class ClickInstance extends EventEmitter {
command (index) {
index = index + 2
this.api.click('.instance:nth-of-type(' + index + ') > div > button').perform(() => { this.emit('complete') })
return this
}
}

module.exports = ClickInstance
359 changes: 0 additions & 359 deletions test-browser/tests/generalTests.js

This file was deleted.

0 comments on commit 50d23c0

Please sign in to comment.