hardhat logs

pull/2868/head
filip mertens 2 years ago
parent 3154504a58
commit 8c49d8481d
  1. 6
      apps/remix-ide-e2e/src/tests/ballot_0_4_14.test.ts
  2. 4
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -16,7 +16,7 @@ module.exports = {
'@sources': function () { '@sources': function () {
return sources return sources
}, },
'Add Ballot #group1 #group2 #flaky': function (browser: NightwatchBrowser) { 'Add Ballot #group1 #group2': function (browser: NightwatchBrowser) {
browser browser
.addFile('Untitled.sol', sources[0]['Untitled.sol']) .addFile('Untitled.sol', sources[0]['Untitled.sol'])
}, },
@ -30,12 +30,12 @@ module.exports = {
.verify.elementPresent('[data-id="compilerContainerAutoCompile"]:checked') .verify.elementPresent('[data-id="compilerContainerAutoCompile"]:checked')
}, },
'Compile Ballot with compiler version 0.4.14 #flaky #group1 #group2': function (browser: NightwatchBrowser) { 'Compile Ballot with compiler version 0.4.14 #group1 #group2': function (browser: NightwatchBrowser) {
browser browser
.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['Ballot']) .testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['Ballot'])
}, },
'Deploy Ballot #group1 #flaky': function (browser: NightwatchBrowser) { 'Deploy Ballot #group1': function (browser: NightwatchBrowser) {
browser.pause(500) browser.pause(500)
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')

@ -162,8 +162,10 @@ module.exports = {
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Passed: 0') .waitForElementContainsText('*[data-id="terminalJournal"]', 'Passed: 0')
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Failed: 1') .waitForElementContainsText('*[data-id="terminalJournal"]', 'Failed: 1')
}, },
'Should print hardhat logs #group4': function (browser: NightwatchBrowser) { 'Should print hardhat logs #group4 #flaky': function (browser: NightwatchBrowser) {
browser browser
.addFile('printHardhatlog.sol', { content: hardhatLog })
.clickLaunchIcon('solidity')
.click('*[data-id="terminalClearConsole"]') // clear the terminal .click('*[data-id="terminalClearConsole"]') // clear the terminal
.waitForElementVisible('[for="autoCompile"]') .waitForElementVisible('[for="autoCompile"]')
.click('[for="autoCompile"]') .click('[for="autoCompile"]')

Loading…
Cancel
Save