Add this to `testSettings`: `launchArgs: ['--use-fake-ui-for-media-stream', '--use-fake-device-for-media-stream'],` This can be used instead of needing to click Allow when the browser asks for permission to use the camera or microphone.