|
|
|
@ -251,9 +251,19 @@ const tests = { |
|
|
|
|
.clearTransactions() |
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
|
.waitForElementVisible('input[placeholder="bytes32[] proposalNames"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.setValue('input[placeholder="bytes32[] proposalNames"]', '["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"]') |
|
|
|
|
.pause(1000) |
|
|
|
|
.click('*[data-id="Deploy - transact (not payable)"]') // deploy ballot
|
|
|
|
|
.pause(5000) |
|
|
|
|
.pause(1000) |
|
|
|
|
.waitForElementVisible({ |
|
|
|
|
locateStrategy: 'xpath', |
|
|
|
|
selector: "//span[@class='text-log' and contains(., 'creation of')]" |
|
|
|
|
}) |
|
|
|
|
.waitForElementVisible({ |
|
|
|
|
locateStrategy: 'xpath', |
|
|
|
|
selector: "//span[@class='text-log' and contains(., 'pending')]" |
|
|
|
|
}) |
|
|
|
|
.saveScreenshot('./reports/screenshots/metamask_before.png') |
|
|
|
|
.perform((done) => { |
|
|
|
|
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { |
|
|
|
|