Commit 7fc27917 authored by davidzagi93@gmail.com's avatar davidzagi93@gmail.com

commiting test logs

parent 1820b3bc
...@@ -10,7 +10,9 @@ class JournalLastChildIncludes extends EventEmitter { ...@@ -10,7 +10,9 @@ class JournalLastChildIncludes extends EventEmitter {
.waitForElementVisible('*[data-id="terminalJournal"]', 10000) .waitForElementVisible('*[data-id="terminalJournal"]', 10000)
.pause(1000) .pause(1000)
.getText('*[data-id="terminalJournal"]', (result) => { .getText('*[data-id="terminalJournal"]', (result) => {
this.api.pause(5000)
console.log('JournalLastChildIncludes', result.value) console.log('JournalLastChildIncludes', result.value)
console.log({ val }, ' JournalLastchildIncludes val')
if (typeof result.value === 'string' && result.value.indexOf(val) === -1) return this.api.assert.fail(`wait for ${val} in ${result.value}`) if (typeof result.value === 'string' && result.value.indexOf(val) === -1) return this.api.assert.fail(`wait for ${val} in ${result.value}`)
else this.api.assert.ok(true, `<*[data-id="terminalJournal"]> contains ${val}.`) else this.api.assert.ok(true, `<*[data-id="terminalJournal"]> contains ${val}.`)
this.emit('complete') this.emit('complete')
......
...@@ -81,8 +81,17 @@ module.exports = { ...@@ -81,8 +81,17 @@ module.exports = {
'Deploy and use Ballot using external web3': function (browser: NightwatchBrowser) { 'Deploy and use Ballot using external web3': function (browser: NightwatchBrowser) {
browser browser
.click('*[data-id="settingsWeb3Mode"]') .click('option[value="web3"]')
.pause(5000)
.modalFooterOKClick() .modalFooterOKClick()
.pause(5000)
.execute(function () {
const env: any = document.getElementById('selectExEnvOptions')
return env.value
}, [], function (result) {
console.log({ result })
browser.assert.ok(result.value === 'web3', 'Web3 Provider not selected')
})
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['Ballot']) .testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['Ballot'])
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment