Sign inSign up

budmore/nodejs-java-chrome-headless-nightwatch

By budmore

•Updated about 9 years ago

NODEJS JAVA CHROME - Java headless, chrome, nightwatch, vue, e2e

Image
0

448

budmore/nodejs-java-chrome-headless-nightwatch repository overview

⁠Vuejs e2e testing with Nightwatchjs

required nightwatch settings

⁠nightwatch.conf.js example

require('babel-register')
var config = require('../../config')

module.exports = {
  src_folders: ['test/e2e/specs'],
  output_folder: 'test/e2e/reports',
  custom_assertions_path: ['test/e2e/custom-assertions'],

  selenium: {
    start_process: true,
    server_path: require('selenium-server').path,
    host: '127.0.0.1',
    port: 4444,
    cli_args: {
      'webdriver.chrome.driver': require('chromedriver').path
    }
  },

  test_settings: {
    default: {
      selenium_port: 4444,
      selenium_host: 'localhost',
      silent: true,
      globals: {
        devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
      }
    },

    chrome: {
      desiredCapabilities: {
        browserName: 'chrome',
        javascriptEnabled: true,
        acceptSslCerts: true,
        chromeOptions: {
          args: ['headless', 'no-sandbox', 'disable-gpu'] // <-- Required
        }
      }
    }
  }
}

Tag summary

Content type

Image

Digest

Size

290.8 MB

Last updated

about 9 years ago

docker pull budmore/nodejs-java-chrome-headless-nightwatch