me: voicemail page, greetings, My Phone home
/api/me/voicemail lists, streams (Range, download) and marks read or deletes through AMI VoicemailMove/VoicemailRemove, then rescans so MWI and the list agree. /api/me/greetings takes the raw recording or file and converts it with ffmpeg to 8 kHz PCM (media/audio.ts). My Phone gets a layout with Home (new voicemails) and Voicemail (play marks read, download, delete, record/upload greetings via MediaRecorder); the list refetches on the live voicemail.new event. e2e m4-t3 checks MWI goes off within 5 s after play and delete, and a browser-recorded greeting is what callers hear. Task: M4-T3
This commit is contained in:
1 parent
fe2eb4cc22
commit
f60dda0bb0
18 files changed
+978
-42
No files matched your search
+3
-1
@@ -9,7 +9,8 @@ import { join } from 'node:path';
|
||||
const EDGE = process.env.BROWSER ?? 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe';
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
|
||||
export async function launch({ width = 1280, height = 800, shotsDir }) {
|
||||
/** `args`: extra browser flags, e.g. a fake microphone for MediaRecorder tests. */
|
||||
export async function launch({ width = 1280, height = 800, shotsDir, args = [] }) {
|
||||
const profile = mkdtempSync(join(tmpdir(), 'sp-edge-'));
|
||||
const port = 9300 + Math.floor(Math.random() * 500);
|
||||
const proc = spawn(EDGE, [
|
||||
@@ -18,6 +19,7 @@ export async function launch({ width = 1280, height = 800, shotsDir }) {
|
||||
`--user-data-dir=${profile}`,
|
||||
'--no-first-run',
|
||||
`--window-size=${width},${height}`,
|
||||
...args,
|
||||
'about:blank',
|
||||
]);
|
||||
let info;
|
||||
|
||||
Reference in new issue
Block a user