Merge pull request #642 from ethereum/firefox-stuck

Add delay for contract selection
removeFiles
yann300 4 years ago committed by GitHub
commit d8c807b78d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/remix-ide-e2e/src/commands/selectContract.ts
  2. 5
      apps/remix-ide-e2e/src/tests/recorder.test.ts

@ -15,7 +15,7 @@ class SelectContract extends EventEmitter {
function selectContract (browser: NightwatchBrowser, contractName: string, callback: VoidFunction) {
browser.clickLaunchIcon('settings').clickLaunchIcon('udapp')
.pause(1000)
.pause(10000)
.setValue('#runTabView select[class^="contractNames"]', contractName).perform(() => {
callback()
})

@ -56,10 +56,11 @@ module.exports = {
browser.assert.equal(JSON.stringify(parsed.transactions[1].record.name), JSON.stringify(scenario.transactions[1].record.name))
browser.assert.equal(JSON.stringify(parsed.transactions[1].record.type), JSON.stringify(scenario.transactions[1].record.type))
browser.assert.equal(JSON.stringify(parsed.transactions[1].record.from), JSON.stringify(scenario.transactions[1].record.from))
})
})
.end()
},
'Record more than one contract': function (browser: NightwatchBrowser) {
'Record more than one contract': '' + function (browser: NightwatchBrowser) {
// deploy 2 contracts (2 different ABIs), save the record, reexecute and test one of the function.
let addressRef
browser

Loading…
Cancel
Save