Default window size in headless mode is 800x600, so that might be the reason for the other-element-would-receive-click.
You can set the size here:
Default window size in headless mode is 800x600, so that might be the reason for the other-element-would-receive-click.
You can set the size here: