|
|
|
@ -31,32 +31,34 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str |
|
|
|
|
.click('*[data-id="treeViewDivtreeViewItemcompiler"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLiversion"]') |
|
|
|
|
.assert.containsText('*[data-id="treeViewLiversion"]', `${opts.version}`) |
|
|
|
|
.click('[data-id="workspacesModalDialog-modal-footer-cancel-react"]') |
|
|
|
|
.assert.visible('*[id="compileDetails"]') |
|
|
|
|
// .click('[data-id="workspacesModalDialog-modal-footer-cancel-react"]')
|
|
|
|
|
.perform(() => { |
|
|
|
|
done() |
|
|
|
|
callback() |
|
|
|
|
}) |
|
|
|
|
} if (opts.runs) { |
|
|
|
|
browser |
|
|
|
|
.click('*[data-id="compilation-details"]') |
|
|
|
|
.waitForElementVisible('*[data-id="remixui_treeviewitem_metadata"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.click('*[data-id="remixui_treeviewitem_metadata"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewDivtreeViewItemsettings"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.click('*[data-id="treeViewDivtreeViewItemsettings"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewDivtreeViewItemoptimizer"]') |
|
|
|
|
.click('*[data-id="treeViewDivtreeViewItemoptimizer"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewDivruns"]') |
|
|
|
|
.assert.containsText('*[data-id="treeViewDivruns"]', `${opts.runs}`) |
|
|
|
|
.click('[data-id="workspacesModalDialog-modal-footer-cancel-react"]') |
|
|
|
|
.perform(() => { |
|
|
|
|
done() |
|
|
|
|
callback() |
|
|
|
|
}) |
|
|
|
|
.click('*[data-id="compilation-details"]') |
|
|
|
|
.waitForElementVisible('*[data-id="remixui_treeviewitem_metadata"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.click('*[data-id="remixui_treeviewitem_metadata"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewDivtreeViewItemsettings"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.click('*[data-id="treeViewDivtreeViewItemsettings"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewDivtreeViewItemoptimizer"]') |
|
|
|
|
.click('*[data-id="treeViewDivtreeViewItemoptimizer"]') |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewDivruns"]') |
|
|
|
|
.assert.containsText('*[data-id="treeViewDivruns"]', `${opts.runs}`) |
|
|
|
|
.assert.visible('*[id="compileDetails"]') |
|
|
|
|
// .click('[data-id="workspacesModalDialog-modal-footer-cancel-react"]')
|
|
|
|
|
.perform(() => { |
|
|
|
|
done() |
|
|
|
|
callback() |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
for (const index in compiledContractNames) { |
|
|
|
|
await browser.waitForElementContainsText('[data-id="compiledContracts"]', compiledContractNames[index], 60000) |
|
|
|
|
await browser.waitForElementContainsText('[data-id="compiledContracts"]', compiledContractNames[index], 60000) |
|
|
|
|
} |
|
|
|
|
done() |
|
|
|
|
callback() |
|
|
|
|