Class: ScreenshotPlugin

e2e/plugins/screenshotPlugin~ScreenshotPlugin()

new ScreenshotPlugin()

Defines a protractor screenshot plugin to capture an image if a test failed.

Source:
Example
// In protractor configuration file
plugins: [
  {

     // Path to the directory which will hold the taken screenshots
     outdir: 'build/screenshots',

     // Load the plugin
     inline: require('@openveo/test').e2e.plugins.screenshotPlugin
  }
]

Methods

(static) postTest()

Generates a screenshot each time a test failed.

For more more information about plugins refer to protractor's documentation available at https://github.com/angular/protractor/blob/master/docs/plugins.md

This:
Source: