mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Address Stories review feedback
This commit is contained in:
1 parent
2edcd5bc69
commit
fec84dbf78
48 files changed
+783
-232
No files matched your search
@@ -34,7 +34,7 @@ globalThis.HTMLCanvasElement.prototype.getContext = (kind) =>
|
||||
globalThis.requestAnimationFrame = () => 0;
|
||||
globalThis.cancelAnimationFrame = () => {};
|
||||
|
||||
const { bootStories } = await import('./boot.js');
|
||||
const { bootStories, stopVoiceForStories } = await import('./boot.js');
|
||||
const { useStoriesStore } = await import('../ui/stores/stories.js');
|
||||
|
||||
const { bindRenderer } = await import('../render/rendererOf.js');
|
||||
@@ -76,6 +76,27 @@ const director = {
|
||||
styleManager: { runImmediateNavigation: () => true },
|
||||
};
|
||||
|
||||
test('entering Stories stops microphone sessions and preserves typed chat', () => {
|
||||
let textOnly = false;
|
||||
let active = true;
|
||||
let stops = 0;
|
||||
const session = {
|
||||
adapter: { getStartOptions: () => ({ textOnly }) },
|
||||
isActive: () => active,
|
||||
stop: () => {
|
||||
stops += 1;
|
||||
},
|
||||
};
|
||||
assert.equal(stopVoiceForStories(session), true);
|
||||
active = false;
|
||||
assert.equal(stopVoiceForStories(session), false);
|
||||
assert.equal(stops, 2);
|
||||
textOnly = true;
|
||||
active = true;
|
||||
assert.equal(stopVoiceForStories(session), false);
|
||||
assert.equal(stops, 2);
|
||||
});
|
||||
|
||||
test('the shell loads the controller on first open, then steps aside', async () => {
|
||||
setActivePinia(createPinia());
|
||||
history.replaceState(null, '', '/');
|
||||
|
||||
Reference in new issue
Block a user