-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Firefox - Issue with 'media.navigator.streams.fake' in Test Runner #8849
Comments
I'm getting the same error screen within Chrome with the code provided. Did you provide the code to also have this pass in Chrome? It'd be helpful to see a passing test case to compare Firefox to since I'm not familiar with the application itself. |
My apologies @jennifer-shehane , I was able to reproduce the issue you observed in Chrome as well, with my provided example. I was able to remedy camera recording in Chrome by using the following to the
Alternatively, you could just use |
I'm running into the same problem on FF. I found that even without setting the My quick test was: open test runner, pop-up dev tools and use this snippet to see what video devices are there in different frames in each browser.
Chromium has no problem accessing the fake camera no matter the frame, Firefox reports no devices in the app frame though. |
I managed to work around this for now, picked up the hint reading through this article. Followed up with this. To set the
Use at your own peril 👋 |
This seems to also be needed starting Firefox 92, which includes some fixes in how they handle permissions. See also Feature Policy iframe allow |
Fixes cypress-io#8849 Permissions must be specified to allow access to the (fake) camera and microphone from within the Cypress iframe.
@mateatslc Thank you for your workaround! I'm hoping we can set this |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue is still reproducible in Cypress 12.8.1 in Firefox 110 on macOS 13.3.1 without the provided workaround. |
I have replicated this issue in the latest version of Cypress and will forward this ticket to the appropriate team. They will evaluate the priority of this ticket and consider their capacity to pick it up. Please note that this does not guarantee that this issue will be resolved. |
Current behaviour
When using Firefox with
media.navigator.streams.fake
the fake camera device can not be detected by the page under test within the test runner.However, if visiting the page under test outside the test runner (new tab) the fake camera is detected by the page under test.
Desired behaviour
Like Chrome/Electron, fake camera is detected within the test runner, so it can be tested.
Test code to reproduce
index.js
camera-recording.spec.js
Versions
Cypress 5.1.0 & 5.3.0 with Firefox 81 on Windows 10
The text was updated successfully, but these errors were encountered: