Skip to content

Commit

Permalink
Merge pull request #522 from ethereum/fixe2e
Browse files Browse the repository at this point in the history
Fix e2e tests
  • Loading branch information
yann300 committed Oct 27, 2020
2 parents 5491a8e + d901024 commit 1a63e61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/remix-ide-e2e/src/commands/clickFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClickFunction extends EventEmitter {
done()
})
})
.click('.instance button[title="' + fnFullName + '"]')
.scrollAndClick('.instance button[title="' + fnFullName + '"]')
.pause(2000)
.perform(() => {
this.emit('complete')
Expand Down
22 changes: 13 additions & 9 deletions apps/remix-ide-e2e/src/tests/debugger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@ module.exports = {
.goToVMTraceStep(717)
.pause(5000)
.checkVariableDebug('soliditylocals', localVariable_step717_ABIEncoder) // all locals should be initiaed
.clickLaunchIcon('udapp')
.clickInstance(2)
},

'Should load more solidity locals array': function (browser: NightwatchBrowser) {
browser.addFile('locals.sol', sources[3]['browser/locals.sol'])
browser
.clickLaunchIcon('solidity')
.testContracts('locals.sol', sources[3]['browser/locals.sol'], ['testLocals'])
.clickLaunchIcon('udapp')
.waitForElementPresent('*[title="Deploy - transact (not payable)"]', 40000)
.createContract('')
Expand Down Expand Up @@ -241,15 +245,15 @@ const sources = [
{
'browser/locals.sol': {
content: `
pragma solidity ^0.7.0;
contract test {
function t () public {
uint[] memory array = new uint[](150);
for (uint k = 0; k < 150; k++) {
array[k] = k;
}
pragma solidity ^0.7.0;
contract testLocals {
function t () public {
uint[] memory array = new uint[](150);
for (uint k = 0; k < 150; k++) {
array[k] = k;
}
}
}
}
`
}
},
Expand Down

0 comments on commit 1a63e61

Please sign in to comment.