-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get fake camera feed working w arguments: --use-fake-device-for-media-stream
and --use-fake-ui-for-media-stream
for testing video throughput in Cypress
#710
Comments
Just moving here so we can keep working on this issue! |
For reference linking to publiclab/spectral-workbench.js#245 And, i think the format for using a local test video is:
? |
https://docs.cypress.io/api/plugins/browser-launch-api#Use-fake-video-for-webcam-testing Should this help? Thanks for this - it's exciting!!! |
Yes this would do, it's just that currently I don't have that much experience with cypress testing, so I'll circle back here to write some more tests later... |
OK, great. If you could try creating a PR with the cypress test, and even if it doesn't work, just open and point me at where it's going wrong, I can help debug! Great!!! |
So just btw, is this solved in https://github.com/publiclab/spectral-workbench.js/ (or esp. in publiclab/spectral-workbench.js#245)? and will solving it there solve it here too, or is there a distinct issue with this argument in Rails system tests? |
I believe we were able to resolve #245 without actually faking the camera input - we just checked for a large enough file size in the downloaded image. Later if we add a video or still image of a spectrum, we could refine our tests to look for more, and pursue this! |
--use-fake-device-for-media-stream
and --use-fake-ui-for-media-stream
in the Selenium Chrome driver--use-fake-device-for-media-stream
and --use-fake-ui-for-media-stream
for testing video throughput in Cypress
Hi @jywarren, I'm not able to get the fake camera feed work 😕 by passing in the arguments:
--use-fake-device-for-media-stream
and--use-fake-ui-for-media-stream
in the Selenium Chrome driver. Other than that I've created tests for/upload
,/capture
and/capture/v2
routes which capture the spectrum and delete it after logging in with a random username using thefaker
gem.More on this at -
Originally posted by @waridrox in #702 (comment)
The text was updated successfully, but these errors were encountered: