Fixed failing tests

pull/5370/head
ioedeveloper 4 years ago
parent cad67bce97
commit f44e32ef0c
  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', '') return id.replace('instance', '')
}, [index], function (result) { }, [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') .clickLaunchIcon('fileExplorers')
.openFile('browser/1_Storage.sol') .openFile('browser/1_Storage.sol')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckbox"]') .waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')
.click('*[data-id="contractDropdownIpfsCheckbox"]') .click('*[data-id="contractDropdownIpfsCheckbox"]')
.click('*[data-id="Deploy - transact (not payable)"]') .click('*[data-id="Deploy - transact (not payable)"]')
.pause(5000) .pause(5000)
@ -57,7 +57,7 @@ module.exports = {
.refresh() .refresh()
.openFile('browser/1_Storage.sol') .openFile('browser/1_Storage.sol')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckbox"]') .waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')
.verify.elementPresent('*[data-id="contractDropdownIpfsCheckbox"]:checked') .verify.elementPresent('*[data-id="contractDropdownIpfsCheckbox"]:checked')
.end() .end()
}, },

Loading…
Cancel
Save