If your UI automation includes launching Chrome, you might find it helpful to launch Headless Chrome . Thus, the screen resolution of the slave does not matter, since you can specify the resolution you want to use.
I was able to achieve this using these Chrome startup arguments running on a Jenkins Windows slave server:
--headless --window-size=1920,1080
In my case, with Nightwatch, this is a fragment of the nightwatch.json file:
"desiredCapabilities": { "browserName": "chrome", "chromeOptions": { "args": ["--window-size=1920,1080", "--headless"] },
source share