Retain K1 connection between scans and admit the next named acquisition
This commit is contained in:
@@ -30,7 +30,7 @@ test('manual K1 surface admits one START only after current control proof',()=>{
|
||||
assert.doesNotMatch(pending,/Инициировать запуск|Настройки устройства|sensor-live-layout/);
|
||||
assert.match(pending,/Проверить состояние K1/);
|
||||
assert.match(pending,/авторизовать/);
|
||||
assert.equal(presentation.k1Status(waiting,true).label,'Wi-Fi настроен · нет управления');
|
||||
assert.equal(presentation.k1Status(waiting,true).label,'Нет связи с K1');
|
||||
assert.equal(presentation.k1ManualState(device,false).canStart,false);
|
||||
});
|
||||
test('active acquisition exposes STOP and Rerun without another START',()=>{
|
||||
@@ -58,10 +58,10 @@ test('calibration loader stays inside the primary action',()=>{
|
||||
assert.match(markup,/K1 калибруется и готовит облако точек/);
|
||||
assert.doesNotMatch(markup,/Обновить просмотр/);
|
||||
});
|
||||
test('completed STOP remains visible while the control connection is checked again',()=>{
|
||||
test('connection loss is visible independently of completed STOP',()=>{
|
||||
const stopped={...device,online:false,verified:false,control:{...device.control,phase:'completed',can_start:false,network_applied:true}};
|
||||
const markup=render(stopped);
|
||||
assert.match(markup,/Устройство остановлено/);
|
||||
assert.match(markup,/Нет связи с K1/);
|
||||
assert.match(markup,/Проверить состояние K1/);
|
||||
assert.doesNotMatch(markup,/Инициировать запуск|нет управления/);
|
||||
});
|
||||
@@ -73,3 +73,13 @@ test('enrollment handoff opens only the verified current session',()=>{
|
||||
assert.equal(enrolledDevice({...inventory,items:[{...device,verified:false}]},'exact-session'),null);
|
||||
assert.equal(enrolledDevice({...inventory,items:[device,device]},'exact-session'),null);
|
||||
});
|
||||
|
||||
test('completed scan with healthy control remains connected and permits a named next scan',()=>{
|
||||
const stopped={...device,control:{...device.control,phase:'completed'}};
|
||||
const markup=render(stopped);
|
||||
assert.equal(presentation.k1Status(stopped,true).label,'Подключён');
|
||||
assert.equal(presentation.k1ManualState(stopped,true).canStart,true);
|
||||
assert.match(markup,/Инициировать запуск/);
|
||||
assert.doesNotMatch(markup,/Проверить состояние K1|Подключить устройство|Устройство остановлено/);
|
||||
assert.equal(presentation.k1Status(stopped,false).tone,'neutral');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user