Commit 9a6586a0 authored by yann300's avatar yann300

fix e2e tests

parent 1e84ad28
......@@ -147,11 +147,11 @@ module.exports = {
.waitForElementPresent('.instance:nth-of-type(3)')
.click('.instance:nth-of-type(3) > div > button')
.clickFunction('g - transact (not payable)', { types: '', values: '' })
.journalLastChildIncludes(`Error provided by the contract:
E
Parameters:
2
Debug the transaction to get more information.`)
.journalLastChildIncludes('Error provided by the contract:')
.journalLastChildIncludes('CustomError')
.journalLastChildIncludes('Parameters:')
.journalLastChildIncludes('2, 3, error_string_2')
.journalLastChildIncludes('Debug the transaction to get more information.')
.end()
}
}
......@@ -241,13 +241,13 @@ contract C {
pragma solidity ^0.8.4;
error E(uint a);
error CustomError(uint a, uint b, uint c);
contract C {
function f() public pure {
revert E(2);
revert CustomError(2, 3, "error_string");
}
function g() public {
revert E(2);
revert CustomError(2, 3, "error_string_2");
}
}`
}
......
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