Same here. I'm getting the same problem with Safari. Note: I have not had any issues with Chrome.
We are running around 200+ TestCafe test scripts on daily basis (nightly run). On Safari, test runs are failing because of following issue:
ERROR The Safari 11.1.0 / Mac OS X 10.12.6 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.
Here how I run tests. I launch the app using TestCafe to run the tests:
testcafe safari calendar.js compose.js contacts.js mail.js notes.js search.js settings.js tasks.js -e --app 'npm run serve' --app-init-delay 5000 -r html-testrail,xunit:result.xml
We are using Mac Pro server with 32 GB RAM and using latest TestCafe v0.20.0-alpha.1.
@churkin or someone else from TestCafe team investigate?