record video

pull/2700/head
bunsenstraat 2 years ago committed by Aniket
parent e555edde13
commit 0c87cf0e6b
  1. 11
      apps/remix-ide-e2e/nightwatch.ts
  2. 6
      apps/remix-ide-e2e/src/tests/terminal.test.ts
  3. 1
      package.json

@ -20,6 +20,17 @@ 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']
},

@ -7,6 +7,12 @@ module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp', false)
},
beforeEach: function (browser, done) {
require('nightwatch-video-recorder').start(browser, done)
},
afterEach: function (browser, done) {
require('nightwatch-video-recorder').stop(browser, done)
},
'Should execution a simple console command #group1 #group999': function (browser: NightwatchBrowser) {
browser

@ -192,6 +192,7 @@
"latest-version": "^5.1.0",
"merge": "^2.1.1",
"monaco-editor": "^0.30.1",
"nightwatch-video-recorder": "^3.0.0",
"npm-install-version": "^6.0.2",
"raw-loader": "^4.0.2",
"react": "^17.0.2",

Loading…
Cancel
Save