@@ -271,6 +271,9 @@ test('session panel stays closed while Jarvis speaks unless expanded', () => {
|
||||
session.show(true);
|
||||
assert.equal(session.root.visible, true);
|
||||
assert.match(session.view.transcript.children[0].text, /still talking/);
|
||||
session.view.scroll.vadjustment.value = 0;
|
||||
session.show(true);
|
||||
assert.equal(session.view.scroll.vadjustment.value, 160);
|
||||
});
|
||||
|
||||
test('lazy ASR still shows the microphone as available when capture is up', () => {
|
||||
@@ -480,11 +483,23 @@ test('Chat and Thinking tabs exist and thinking auto-follows', () => {
|
||||
assert.match(view.thinking.text, /Considering the lookup/);
|
||||
assert.equal(view.thinking.clutter_text.ellipsize, 0);
|
||||
assert.equal(view.thinkingScroll.vadjustment.value, 160);
|
||||
view.token('Latest reply token');
|
||||
view.scroll.vadjustment.value = 0;
|
||||
view.setState('SPEAKING');
|
||||
assert.equal(view._tab, 'chat');
|
||||
assert.equal(view.scroll.visible, true);
|
||||
assert.equal(view.thinkingScroll.visible, false);
|
||||
assert.equal(view.scroll.vadjustment.value, 160);
|
||||
view.showTab('chat', { user: true });
|
||||
view.updateThinking('still thinking');
|
||||
assert.equal(view._tab, 'chat');
|
||||
assert.equal(view.thinkingScroll.visible, false);
|
||||
assert.match(view.thinking.text, /still thinking/);
|
||||
view.thinkingScroll.vadjustment.value = 0;
|
||||
view.showTab('thinking', { user: true });
|
||||
assert.equal(view._tab, 'thinking');
|
||||
assert.equal(view.thinkingScroll.visible, true);
|
||||
assert.equal(view.thinkingScroll.vadjustment.value, 160);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user