From 3e75f4f6f6fdaf0d2c578a30b1725cd6d42a2767 Mon Sep 17 00:00:00 2001 From: Blake Thomas Williams <49404493+btw17@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:56:28 -0600 Subject: [PATCH] fix: updated mocha tests to display error messages (#7706) * fix: updated mocha tests to display error messages * fix: replaced double quotes with single quotes --- tests/mocha/webdriver.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/mocha/webdriver.js b/tests/mocha/webdriver.js index c4d3357b8..207917c5e 100644 --- a/tests/mocha/webdriver.js +++ b/tests/mocha/webdriver.js @@ -63,7 +63,8 @@ async function runMochaTestsInBrowser() { console.log('There is at least one test failure, but no messages reported. Mocha may be failing because no tests are being run.'); } for (const el of failureMessagesEls) { - console.log(await el.getText()); + const messageHtml = await el.getHTML(); + console.log(messageHtml.replace('

', '').replace('

', '')); } }