Back to Codeceptjs

pageInfo

docs/plugins/pageInfo.md

4.0.0790 B
Original Source
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

pageInfo

Collects information from web page after each failed test and adds it to the test as an artifact. It is suggested to enable this plugin if you run tests on CI and you need to debug failed tests. This plugin can be paired with analyze plugin to provide more context.

It collects URL, HTML errors (by classes), and browser logs.

Enable this plugin in config:

js
plugins: {
 pageInfo: {
  enabled: true,
}

Additional config options:

  • errorClasses - list of classes to search for errors (default: ['error', 'warning', 'alert', 'danger'])
  • browserLogs - list of types of errors to search for in browser logs (default: ['error'])

Parameters

  • config