codeceptjs
Version:
Supercharged End 2 End Testing Framework for NodeJS
19 lines (12 loc) • 383 B
Markdown
permalink: /plugins/screenshotOnFail
editLink: false
sidebar: auto
title: screenshotOnFail
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## screenshotOnFail
Saves a screenshot when a test fails.
**Deprecated:** use the `screenshot` plugin with `on: 'fail'`, which is the default behavior.
### Parameters
* `config`