I'm trying to trigger windows.focus() on one of my tests that is running in a headless environment. But I'm having trouble getting it to work. Although, the test seems to work when I turn off the headless mode setting. So far I've tried the following but to no avail:
js.executeScript("windows.blur()") before windows.focus()js.executeScript("document.getElementById('reactRoot').focus();");)Was wondering if there's something I'm missing in my setup.