commiting test logs

pull/5370/head
davidzagi93@gmail.com 3 years ago
parent dea56ae30e
commit fe409140a4
  1. 2
      apps/remix-ide-e2e/src/commands/journalLastChildIncludes.ts
  2. 11
      apps/remix-ide-e2e/src/tests/ballot.test.ts

@ -10,7 +10,9 @@ class JournalLastChildIncludes extends EventEmitter {
.waitForElementVisible('*[data-id="terminalJournal"]', 10000)
.pause(1000)
.getText('*[data-id="terminalJournal"]', (result) => {
this.api.pause(5000)
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}`)
else this.api.assert.ok(true, `<*[data-id="terminalJournal"]> contains ${val}.`)
this.emit('complete')

@ -81,8 +81,17 @@ module.exports = {
'Deploy and use Ballot using external web3': function (browser: NightwatchBrowser) {
browser
.click('*[data-id="settingsWeb3Mode"]')
.click('option[value="web3"]')
.pause(5000)
.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')
.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['Ballot'])
.clickLaunchIcon('udapp')

Loading…
Cancel
Save