Skip to content

Commit 3e75f4f

Browse files
authored
fix: updated mocha tests to display error messages (#7706)
* fix: updated mocha tests to display error messages * fix: replaced double quotes with single quotes
1 parent f7e6f5c commit 3e75f4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/mocha/webdriver.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ async function runMochaTestsInBrowser() {
6363
console.log('There is at least one test failure, but no messages reported. Mocha may be failing because no tests are being run.');
6464
}
6565
for (const el of failureMessagesEls) {
66-
console.log(await el.getText());
66+
const messageHtml = await el.getHTML();
67+
console.log(messageHtml.replace('<p>', '').replace('</p>', ''));
6768
}
6869
}
6970

0 commit comments

Comments
 (0)