Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/mocha/webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("<p>", "").replace("</p>", ""));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could you replace the double quotes with single quotes? it appears we don't format this file but that would match the rest of the file. Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

}
}

Expand Down