|
|
@ -19,7 +19,7 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str |
|
|
|
.pause(opts.wait) |
|
|
|
.pause(opts.wait) |
|
|
|
.pause(5000) |
|
|
|
.pause(5000) |
|
|
|
.waitForElementPresent('*[data-id="compiledContracts"] option', 60000) |
|
|
|
.waitForElementPresent('*[data-id="compiledContracts"] option', 60000) |
|
|
|
.perform((done) => { |
|
|
|
.perform(async (done) => { |
|
|
|
if (opts.version) { |
|
|
|
if (opts.version) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.click('*[data-id="compilation-details"]') |
|
|
|
.click('*[data-id="compilation-details"]') |
|
|
@ -55,9 +55,9 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str |
|
|
|
callback() |
|
|
|
callback() |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
compiledContractNames.forEach((name) => { |
|
|
|
for (const name in compiledContractNames) { |
|
|
|
browser.waitForElementContainsText('[data-id="compiledContracts"]', name, 60000) |
|
|
|
await browser.waitForElementContainsText('[data-id="compiledContracts"]', name, 60000) |
|
|
|
}) |
|
|
|
} |
|
|
|
done() |
|
|
|
done() |
|
|
|
callback() |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|