UNPKG

codeceptjs

Version:

Supercharged End 2 End Testing Framework for NodeJS

35 lines (24 loc) 878 B
--- permalink: /plugins/pageInfo editLink: false sidebar: auto title: pageInfo --- <!-- 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`