lundi 10 août 2020

Are there any solutions to the fact that Testcafe doesn't work on MacOS images with SIP enabled?

Currently, we use Github Actions to run our Testcafe suites, but the problem is running Safari tests on the macos-latest image, which is 10.15 Catalina, gives the following error:

UnableToAccessScreenRecordingAPIError: The find-window process cannot access the Screen Recording API.

This is because MacOS images don't come with that permission granted by default. Apparently you can't handle this programmatically, and there's a feature called SIP that is turned on in 10.15 Catalina that stops you from getting around it. This is discussed here.

Since we're relying on Github to provide images, they've not been able to provide us with a non-SIP image as discussed here. The workarounds provided there have been of no help.

Any other ideas? The reason most people choose Testcafe is because of Mac support, it's a shame there really is nothing we can do about this.

Aucun commentaire:

Enregistrer un commentaire