pull/5370/head
bunsenstraat 3 years ago committed by Aniket
parent 2a38069c97
commit 0c401f0238
  1. 11
      apps/remix-ide-e2e/nightwatch.ts
  2. 11
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -20,17 +20,6 @@ module.exports = {
on_failure: true,
on_error: true
},
videos: {
enabled: true, // Enable video recordings
delete_on_pass: true, // Delete video when tests pass
dir: "./reports/videos", // Video directory
ext: ".mp4", // Video file extension
"resolution": "1440x900", // Display resolution
fps: 15, // Frames per second
hostname: "localhost", // X11 server hostname
display: "0", // X11 server display
pixelFormat: "yuv420p" // Output pixel format
},
exclude: ['dist/apps/remix-ide-e2e/src/tests/runAndDeploy.test.js', 'dist/apps/remix-ide-e2e/src/tests/pluginManager.test.ts']
},

@ -163,24 +163,15 @@ module.exports = {
'Should print hardhat logs #group4 #flaky': function (browser: NightwatchBrowser) {
browser
.click('*[data-id="terminalClearConsole"]') // clear the terminal
//.addFile('printHardhatlog.sol', { content: hardhatLog }).pause(4000)
//.saveScreenshot('./reports/screenshots/hardhatLog.png')
//.openFile('printHardhatlog.sol').pause(4000)
//.saveScreenshot('./reports/screenshots/hardhatLog_2.png')
//.clickLaunchIcon('solidity')
.waitForElementVisible('[for="autoCompile"]')
.click('[for="autoCompile"]')
.clickLaunchIcon('udapp')
.saveScreenshot('./reports/screenshots/hardhatLog_2.5.png')
.testContracts('printHardhatlog.sol', { content: hardhatLog }, ['OwnerTest'])
.saveScreenshot('./reports/screenshots/hardhatLog_2.8.png')
.clickLaunchIcon('udapp')
.click('*[data-id="deployAndRunClearInstances"]')
.selectContract('OwnerTest')
.saveScreenshot('./reports/screenshots/hardhatLog_3.png')
.createContract('')
.saveScreenshot('./reports/screenshots/hardhatLog_4.png')
.pause(1000)
.journalChildIncludes('constructor', { shouldHaveOnlyOneOccurence: true })
.pause(5000)

Loading…
Cancel
Save