mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Merge main into the voice tilt branch
This commit is contained in:
commit
2aef67197c
53 files changed
+2178
-320
No files matched your search
@@ -2190,7 +2190,7 @@ test('voice Radio resolves Austin and exposes semantic selection, volume, pause,
|
||||
assert.equal(result.radioAction, 'play');
|
||||
assert.equal(result.stationId, 'nearest');
|
||||
assert.equal('station' in result, false);
|
||||
assert.deepEqual(calls.at(-1), ['cycle', 1, { focus: false, autoplay: false }]);
|
||||
assert.deepEqual(calls.at(-1), ['cycle', 1, { focus: false, autoplay: false, fallback: true }]);
|
||||
|
||||
for (const invalidCoordinates of [
|
||||
{ latitude: null, longitude: null },
|
||||
@@ -4317,3 +4317,20 @@ test('set_panel_open reaches the Utilities panel by its name, Draw or Import', a
|
||||
}
|
||||
assert.deepEqual(calls.at(-1), ['utilities-panel', false, { explicit: true }]);
|
||||
});
|
||||
|
||||
test('a partial analyst card shows one partial chip', () => {
|
||||
const card = presentResult('analyst_query', {
|
||||
ok: true,
|
||||
action: 'analyst_query',
|
||||
count: 3,
|
||||
feedState: 'partial',
|
||||
partial: true,
|
||||
unanswered: ['vessels'],
|
||||
summary: '3 contacts',
|
||||
scopeLabel: 'within 5 km of X',
|
||||
display: { scope: 'within 5 km of X' },
|
||||
coverage: {},
|
||||
});
|
||||
const labels = card.display.chips.map((chip) => chip.label);
|
||||
assert.equal(new Set(labels).size, labels.length, JSON.stringify(labels));
|
||||
});
|
||||
Reference in new issue
Block a user