Procedually clicking on context items to expand them after dom mutation is over to enable auto expand behavier which Mochawesome doesn't plan to support(adamgruber/mochawesome#217)
!(function() {
function postExpand() {
const contextEls = document.querySelectorAll('.with-context');
[...contextEls].forEach(item => {
// expand test items with context
item.querySelector('header').click();