Fixed failing tests

pull/343/head
ioedeveloper 4 years ago
parent 374e03c404
commit c7ec853922
  1. 4
      apps/remix-ide-e2e/src/commands/getAddressAtPosition.ts
  2. 4
      apps/remix-ide-e2e/src/tests/publishContract.test.ts

@ -22,7 +22,9 @@ function getAddressAtPosition (browser: NightwatchBrowser, index: number, callba
return id.replace('instance', '')
}, [index], function (result) {
typeof result.value === 'string' && callback(result.value)
const pos = typeof result.value === 'string' ? result.value : null
callback(pos)
})
}

@ -44,7 +44,7 @@ module.exports = {
.clickLaunchIcon('fileExplorers')
.openFile('browser/1_Storage.sol')
.clickLaunchIcon('udapp')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckbox"]')
.waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')
.click('*[data-id="contractDropdownIpfsCheckbox"]')
.click('*[data-id="Deploy - transact (not payable)"]')
.pause(5000)
@ -57,7 +57,7 @@ module.exports = {
.refresh()
.openFile('browser/1_Storage.sol')
.clickLaunchIcon('udapp')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckbox"]')
.waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')
.verify.elementPresent('*[data-id="contractDropdownIpfsCheckbox"]:checked')
.end()
},

Loading…
Cancel
Save