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
|
// 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
|
// save screenshot
|
||||||
const screenshotfile = filePath( test, logPath, 'png' );
|
const screenshotfile = filePath( test, logPath, 'png' );
|
||||||
browser.saveScreenshot( screenshotfile );
|
browser.saveScreenshot( screenshotfile );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue