mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
test(voice): fix resize fixture overlap and trim duplicate coverage
This commit is contained in:
1 parent
10916227cb
commit
bd2342dc81
4 files changed
+8
-25
No files matched your search
@@ -298,11 +298,12 @@ async function main() {
|
|||||||
);
|
);
|
||||||
console.log('PASS: header drag lifts CCTV out of the rail');
|
console.log('PASS: header drag lifts CCTV out of the rail');
|
||||||
|
|
||||||
// Park near the top: the voice dock would cover the south corners once
|
// Park above and right of the voice dock and its raised provider chooser:
|
||||||
// the loop below has grown the window.
|
// growing every edge must leave the south handles clear of both controls.
|
||||||
{
|
{
|
||||||
|
const panel = await readPanel();
|
||||||
const header = await headerPoint();
|
const header = await headerPoint();
|
||||||
await drag(header, 0, 120 - header.y);
|
await drag(header, 900 - panel.left, 120 - header.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
const limits = {
|
const limits = {
|
||||||
|
|||||||
@@ -657,7 +657,6 @@ async function main() {
|
|||||||
// SHARE LINK V2 — real reload restores the same logical plane.
|
// SHARE LINK V2 — real reload restores the same logical plane.
|
||||||
// ============================================================
|
// ============================================================
|
||||||
console.log('\nShare Link v2 — tracked aircraft survives a full reload');
|
console.log('\nShare Link v2 — tracked aircraft survives a full reload');
|
||||||
await evalPage(() => window.__godsEyeView.styleManager.initialRestorePromise);
|
|
||||||
const shareTracked = await evalPage(() => (
|
const shareTracked = await evalPage(() => (
|
||||||
window.__godsEyeView.dataManager.layers
|
window.__godsEyeView.dataManager.layers
|
||||||
.get('flights').module.trackById('aaa001', { origin: 'user' })
|
.get('flights').module.trackById('aaa001', { origin: 'user' })
|
||||||
|
|||||||
@@ -247,18 +247,6 @@ test('mint locks canonical action schemas and server instructions with no perman
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('browser token requests cannot override server capabilities', async (t) => {
|
|
||||||
for (const body of [
|
|
||||||
{ providerDropdown: true },
|
|
||||||
{ inputMode: 'push-to-talk', providerDropdown: true },
|
|
||||||
{ capabilities: { providerDropdown: true } },
|
|
||||||
]) {
|
|
||||||
const f = await fixture(t);
|
|
||||||
assert.equal((await f.send({ body: JSON.stringify(body) })).status, 400);
|
|
||||||
assert.equal(f.calls.length, 0);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
test('missing key and malformed model fail without an upstream request', async (t) => {
|
test('missing key and malformed model fail without an upstream request', async (t) => {
|
||||||
const missing = await fixture(t, { resolveApiKey: () => '' });
|
const missing = await fixture(t, { resolveApiKey: () => '' });
|
||||||
assert.equal((await missing.send()).status, 503);
|
assert.equal((await missing.send()).status, 503);
|
||||||
@@ -487,6 +475,9 @@ test('client bodies cannot override model or locked settings and stay byte bound
|
|||||||
'{"inputMode":"push-to-talk","model":"gemini-other"}',
|
'{"inputMode":"push-to-talk","model":"gemini-other"}',
|
||||||
'{"inputMode":"push-to-talk","tools":[]}',
|
'{"inputMode":"push-to-talk","tools":[]}',
|
||||||
'{"inputMode":"push-to-talk","extra":false}',
|
'{"inputMode":"push-to-talk","extra":false}',
|
||||||
|
'{"providerDropdown":true}',
|
||||||
|
'{"inputMode":"push-to-talk","providerDropdown":true}',
|
||||||
|
'{"capabilities":{"providerDropdown":true}}',
|
||||||
'{"inputMode":true}',
|
'{"inputMode":true}',
|
||||||
'{"inputMode":null}',
|
'{"inputMode":null}',
|
||||||
'{"inputMode":{}}',
|
'{"inputMode":{}}',
|
||||||
|
|||||||
@@ -3174,15 +3174,7 @@ for (const exit of ['stop', 'boundary']) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const segments of [
|
for (const segments of [['use foo as my voice provider', 'and zoom out']]) {
|
||||||
['set', 'voice', 'volume', 'to', '50'],
|
|
||||||
['set', 'voice', 'speed', 'to', 'fast'],
|
|
||||||
['set', 'provider', 'to', 'bing maps'],
|
|
||||||
['"use foo', 'as my voice provider"'],
|
|
||||||
['use foo as my voice provider', 'and zoom out'],
|
|
||||||
['do not', 'use foo as my voice provider'],
|
|
||||||
['use', 'foo'],
|
|
||||||
]) {
|
|
||||||
test(`native advisory caption text ${JSON.stringify(segments)} releases tools`, async () => {
|
test(`native advisory caption text ${JSON.stringify(segments)} releases tools`, async () => {
|
||||||
const h = guardedNativeHarness();
|
const h = guardedNativeHarness();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user