Merge "selenium: Fix ReferenceError: test is not defined"

This commit is contained in:
jenkins-bot 2021-04-16 19:22:01 +00:00 committed by Gerrit Code Review
commit 7258a8f116

View file

@ -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 );