Our Electron application starts minimized to the Windows tray notification area i.e. not visible on the desktop.
If I attempt to get visibility information through methods such as this or as described here, checking the 'visible' property always returns true.
For example, the below always returns true whether the app is minimized to the notification area or visible on the desktop:
if(await Selector('button', { visibilityCheck: true }).visible)
console.log("VISIBLE");
else
console.log("NOT VISIBLE");
As a hail-mary, I have also attempted to check the 'focused' property but that also always returns true (at least on the 'body') regardless of the application's visibility on the desktop.
Does anyone know of a reliable method through TestCafe to determine if the application is visible on the Windows desktop?
Thanks m