Skip to content
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

FB13800080: Recording/microphone does not work as expected when running automated tests #527

Open
alminveh opened this issue May 17, 2024 · 1 comment

Comments

@alminveh
Copy link

  • Date: 2024-05-16
  • Resolution: Open
  • Area: Safari
  • OS: macOS 14.4
  • Type: Incorrect/Unexpected Behavior
  • Keywords: Safari, Microphone, Tests

Details

What does the Safari issue you are seeing involve?
Audio & Video

Description

When using microphone in Safari in automated tests only noise is getting recorded. This only happens when Safari is started from automated tests, not reproducible when running manually.

I tried with WDIO and Playwright, issue is reproducible in both. Also tried with different applications and all of them capture the same audio (just noise).

Tested with different audio input/output devices, it is reproducible with all of them.

Can be reproduced with a simple WDIO or Playwright test with the following steps:
- open https://translate.google.com/?sl=en&tl=es&op=translate
- start recording by clicking on the button to “Translate by voice”
- observe text in the field (“TestTestTestTestTestTest……..” appears in the field although there is no audio input)

Or:
- from WDIO or Playwright test open any page that can record audio
- start recording
- record for some time
- save recording

If you check the audio that is captured it is only “beep - pause - beep - pause…” noise (I attached one small audio sample).

Files

SafariSample.mp4
@alminveh
Copy link
Author

This is probably related to WebKitPreferences.mockCaptureDevicesEnabled. If I set it to true then I can reproduce this in manual runs as well, but changing the value to false does not make any difference in automated tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant