Merge "selenium: Fix ReferenceError: test is not defined"
This commit is contained in:
commit
7258a8f116
1 changed files with 6 additions and 2 deletions
|
|
@ -106,8 +106,12 @@ exports.config = {
|
|||
// =====
|
||||
// Hooks
|
||||
// =====
|
||||
// Executed after a Mocha test ends.
|
||||
afterTest: function () {
|
||||
/**
|
||||
* Executed after a Mocha test ends.
|
||||
*
|
||||
* @param {Object} test Mocha Test object
|
||||
*/
|
||||
afterTest: function ( test ) {
|
||||
// save screenshot
|
||||
const screenshotfile = filePath( test, logPath, 'png' );
|
||||
browser.saveScreenshot( screenshotfile );
|
||||
|
|
|
|||
Loading…
Reference in a new issue