|
|
@ -75,6 +75,19 @@ module.exports = { |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
.frame(0) |
|
|
|
.frame(0) |
|
|
|
.click('[data-id="compile"]') |
|
|
|
.click('[data-id="compile"]') |
|
|
|
|
|
|
|
.isVisible({ |
|
|
|
|
|
|
|
selector: '[data-id="copy-abi"]', |
|
|
|
|
|
|
|
timeout: 4000, |
|
|
|
|
|
|
|
abortOnFailure: false, |
|
|
|
|
|
|
|
suppressNotFoundErrors: true |
|
|
|
|
|
|
|
}, (okVisible) => { |
|
|
|
|
|
|
|
if (okVisible.value === null) { |
|
|
|
|
|
|
|
console.log('retrying compilation...') |
|
|
|
|
|
|
|
browser.click('[data-id="compile"]').waitForElementVisible('[data-id="copy-abi"]') |
|
|
|
|
|
|
|
} else{ |
|
|
|
|
|
|
|
browser.assert.ok(okVisible.value === true, 'ABI should be visible') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
.frameParent() |
|
|
|
.frameParent() |
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.createContract('') |
|
|
|
.createContract('') |
|
|
|