currently, we are doing visual regression testing via selenium webdriver. As webpages need to be tested against different environments and browsers, we created several VMs that are connected to a central Jenkins CI instance. Due to a low stability, it would be great to switch to TestCafe.

I created a testfile already, and it is working fine on my local environment. I can run through different pages and viewports and create a screenshot on each of it. But I am facing an issue running this on a VM that is connected as a remote worker to a local testcafe instance on port 1337.

In fact, in a webbrowser on the VM, I can see, that all pages are opened as wished. But TestCafe - in opposite to local testing - does not change the viewport and even does not take any screenshots. But there are no error messages either.

Unfortunately, TestCafe doesn't support browser window manipulations for remote workers yet, because it require access to OS-level functionality. But I'm working on some experimintal plugins that will enable it, so if your VMs support installing npm packages, and you are interested, I'll give you instructions about how to try them..