Display an error message in the Cypress app when WebKit cannot launch on this MacOS version
What would you like?
I would like a clear message that WebKit cannot be launched on my MacOS version. Currently, I select WebKit and click the green Start button, which turns gray and says "Opening E2E Testing in Webkit", and then nothing happens.
I figured it out when I tried cypress run instead of cypress open. In this case, I got a very clear message that immediately explained the problem:
There was an error launching `playwright-webkit`:
```Browser closed.
==================== Browser output: ====================
<launching> /.../Library/Caches/ms-playwright/webkit_mac10.15_special-1616/pw_run.sh --inspector-pipe --headless --no-startup-window --proxy=http://localhost:52989
<launched> pid=9905
[pid=9905][out] ****************************************************************
[pid=9905][out] ****************************************************************
[pid=9905][out]
[pid=9905][out] ERROR: MacOS version is too old!
[pid=9905][out]
[pid=9905][out] This version of Playwright does not support running
[pid=9905][out] WebKit on MacOS 10.15. Please either:
[pid=9905][out] - update your operating system to version 11 or higher
[pid=9905][out] - use Playwright v1.25 or older
[pid=9905][out]
[pid=9905][out] ****************************************************************
[pid=9905][out] ****************************************************************
[pid=9905] <process did exit: exitCode=1, signal=null>
[pid=9905] starting temporary directories cleanup Failed to launch browser.
Why is this needed?
I had no idea why WebKit wasn't opening. Sometimes the Cypress app is slow to open a browser so I waited several minutes to see if it resolved itself. I didn't know if I had installed the wrong thing, or screwed up the config, or if maybe it was a case of "it takes longer to run the first time".
Other
I'm currently running MacOs Catalina 10.15.7