mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-14 04:31:21 +00:00
Clean release snapshot
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('audio session runtime is available on page load', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.waitForSelector('.screen.active', { timeout: 10000 });
|
||||
|
||||
const snapshot = await page.evaluate(() => {
|
||||
const appWindow = window as any;
|
||||
if (!appWindow.slopsmith?.audioSession?.snapshot) {
|
||||
throw new Error('audioSession host not available');
|
||||
}
|
||||
return appWindow.slopsmith.audioSession.snapshot();
|
||||
});
|
||||
|
||||
expect(snapshot.schema).toBe('slopsmith.audio_session.diagnostics.v1');
|
||||
expect(snapshot.domains['audio-mix']).toBeTruthy();
|
||||
expect(snapshot.domains['audio-input']).toBeTruthy();
|
||||
expect(snapshot.domains['audio-monitoring']).toBeTruthy();
|
||||
expect(snapshot.domains.stems).toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user