Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'ballot' and 'compiling' browser tests under nightwatch_local #2025

Commits on May 29, 2019

  1. Fix 'testSignature' browser tests under nightwatch_local

    The `testSignature()` browser test in `generalTests.js` would
    occasionally fail due to not obtaining the correct `hash` and
    `signature` values from the browser, resulting in:
    ```
    ✖ generalTests
       - Simple Contract (40.954s)
       Failed [equal]: ('' == '0: address: 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')  - expected "0: address: 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c" but got: ""
           at Object.<anonymous> (/home/scottt/work/remix-0.8/remix-ide/test-browser/helpers/contracts.js:129:22)
    ```
    failures.
    
    This patch fixes it by waiting for the DOM elements with
    `waitForElementPresent` which implicitly retries and obtaining
    the correct contract instance address instead of hard coding it.
    scottt committed May 29, 2019
    Configuration menu
    Copy the full SHA
    d0ddd20 View commit details
    Browse the repository at this point in the history