Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 authored May 3, 2017
1 parent e22ecbd commit 7e143de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-browser/helpers/contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
}

function checkCompiledContracts (browser, compiled, callback) {
browser.elements('css selector', '.udapp .contract .title', function (elements) {
browser.elements('css selector', '.udapp .title', function (elements) {
elements.value.map(function (item, i) {
browser.elementIdText(item.ELEMENT, function (text) {
browser.assert.equal(text.value.split('\n')[0], compiled[i])
Expand All @@ -21,7 +21,7 @@ function testContracts (browser, contractCode, compiledContractNames, callback)
.clearValue('#input textarea')
.click('.newFile')
.setValue('#input textarea', contractCode, function () {})
.waitForElementPresent('.contract .create', 5000, true, function () {
.waitForElementPresent('.udapp .create', 5000, true, function () {
checkCompiledContracts(browser, compiledContractNames, callback)
})
}

0 comments on commit 7e143de

Please sign in to comment.