Testing browser media events using the protractor

I am trying to create some interface tests for a site that accesses a local camera.

Is it possible to scoff at accepting or rejecting the local camera in the protractor test? I have already received my unit tests, which can check the status of the application, which changes depending on whether the camera has been accepted or not, but I can’t verify that the correct user interface is displayed depending on the resolution status of the camera.

Is getUserMedia mocking the best way to handle this? Or is there another way?

Note: I do not use angular, I use mercury.js

+4
source share

All Articles