Static Analysis: fix browser tests

pull/1/head
Michael Fröwis 8 years ago committed by chriseth
parent 5d2e69c7a8
commit 6bb29630fc
  1. 2
      README.md
  2. 2
      test-browser/tests/staticanalysis.js

@ -64,7 +64,7 @@ To run the Selenium tests via Nightwatch serve the app through a local web serve
Then you will need to either:
1. Have a Selenium server running locally on port 4444.
- Run: `npm run browser-test`
- Run: `npm run test-browser`
2. Or, install and run SauceConnect.
- Run: `sc -u <USERNAME> -k <ACCESS_KEY>` (see `.travis.yml` for values)
- Run: `npm run browser-test-sc`

@ -38,7 +38,7 @@ function runTests (browser) {
.click('.staticanalysisView')
.click('#staticanalysisView button')
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () {
dom.listSelectorContains(['Untitled.sol:2:33: use of tx.origin',
dom.listSelectorContains(['Untitled.sol:2:33: Use of tx.origin',
'Fallback function of contract Untitled.sol:TooMuchGas requires too much gas'],
'#staticanalysisresult .warning span',
browser, function () {

Loading…
Cancel
Save