fix(k1): use neutral process copy
This commit is contained in:
@@ -1877,7 +1877,7 @@ test("observed SCANNING recovery is a successful STOP-only connection outcome",
|
||||
);
|
||||
assert.match(
|
||||
acquisitionSource,
|
||||
/physicalStopInFlight\s*\? "Останавливаем устройство…"/,
|
||||
/physicalStopInFlight\s*\? "Остановка устройства…"/,
|
||||
);
|
||||
assert.match(
|
||||
acquisitionSource,
|
||||
|
||||
@@ -700,7 +700,7 @@ test("spatial force-finish pending owns the surface without a second action", ()
|
||||
}),
|
||||
{ pendingAction: "force-finish" },
|
||||
);
|
||||
assert.match(markup, /Завершаем локальный приём/);
|
||||
assert.match(markup, /Завершение локального приёма/);
|
||||
assert.match(markup, /data-recovery-state="force-finishing"/);
|
||||
assert.match(markup, /Команда STOP устройству не отправляется/);
|
||||
assert.equal(buttonsWithText(markup, "Прервать соединение").length, 0);
|
||||
@@ -836,7 +836,7 @@ test("force-finishing shows one local-only pending owner and no second action",
|
||||
camera_recovery: "inactive",
|
||||
});
|
||||
const markup = renderPipeline(state, { pendingAction: "force-finish" });
|
||||
assert.match(markup, /Завершаем локальный приём/);
|
||||
assert.match(markup, /Завершение локального приёма/);
|
||||
assert.match(markup, /Команда STOP устройству не отправляется/);
|
||||
assert.match(markup, /class="nodedc-activity-indicator/);
|
||||
assert.equal(buttonsWithText(markup, "Прервать соединение").length, 0);
|
||||
|
||||
@@ -3433,8 +3433,8 @@ test("physical STOP is fail-closed and both acquisition surfaces fall back to lo
|
||||
activateAutomaticSpatialSource() {},
|
||||
},
|
||||
));
|
||||
assert.match(localCleanupPendingMarkup, /Завершаем локальный приём…/);
|
||||
assert.doesNotMatch(localCleanupPendingMarkup, /Останавливаем устройство…/);
|
||||
assert.match(localCleanupPendingMarkup, /Завершение локального приёма…/);
|
||||
assert.doesNotMatch(localCleanupPendingMarkup, /Остановка устройства…/);
|
||||
|
||||
const physicalStopPendingMarkup = renderToStaticMarkup(createElement(
|
||||
K1AcquisitionPipeline,
|
||||
@@ -3450,8 +3450,8 @@ test("physical STOP is fail-closed and both acquisition surfaces fall back to lo
|
||||
activateAutomaticSpatialSource() {},
|
||||
},
|
||||
));
|
||||
assert.match(physicalStopPendingMarkup, /Останавливаем устройство…/);
|
||||
assert.doesNotMatch(physicalStopPendingMarkup, /Завершаем локальный приём…/);
|
||||
assert.match(physicalStopPendingMarkup, /Остановка устройства…/);
|
||||
assert.doesNotMatch(physicalStopPendingMarkup, /Завершение локального приёма…/);
|
||||
|
||||
const terminalDeniedState = structuredClone(state);
|
||||
terminalDeniedState.phase = "error";
|
||||
@@ -3534,7 +3534,7 @@ test("physical STOP is fail-closed and both acquisition surfaces fall back to lo
|
||||
));
|
||||
assert.match(terminalInFlightMarkup, /ВОССТАНОВЛЕНИЕ · КОМАНДА ОТПРАВЛЕНА/);
|
||||
assert.match(terminalInFlightMarkup, /Команда остановки устройства уже отправлена/);
|
||||
assert.match(terminalInFlightMarkup, /Останавливаем устройство…/);
|
||||
assert.match(terminalInFlightMarkup, /Остановка устройства…/);
|
||||
assert.doesNotMatch(
|
||||
terminalInFlightMarkup,
|
||||
/требуется явный STOP|Нажмите «Остановить сканирование»/,
|
||||
@@ -3848,7 +3848,7 @@ for (const pendingAction of ["connect", "verify"]) {
|
||||
assert.match(markup, /Настройка сети…/);
|
||||
} else {
|
||||
assert.match(markup, /<h3>Сеть<\/h3>/);
|
||||
assert.match(markup, /Проверяем подключение без изменения сети…/);
|
||||
assert.match(markup, /Проверка подключения без изменения сети…/);
|
||||
assert.match(markup, /<span>02<\/span>/);
|
||||
}
|
||||
assertCanonicalConnectionCopy(markup);
|
||||
@@ -5232,7 +5232,7 @@ test("an unresolved physical command has one explicit server-bound read-only rec
|
||||
}, { publicSearch: false });
|
||||
const pendingReconnect = buttonMarkupWithText(
|
||||
pendingMarkup,
|
||||
"Переподключаемся…",
|
||||
"Переподключение…",
|
||||
);
|
||||
assert.equal(pendingReconnect.length, 1);
|
||||
assert.match(pendingReconnect[0], /disabled/);
|
||||
@@ -5457,7 +5457,7 @@ test("unavailable physical replacement stays CAS-protected behind the simple new
|
||||
}, { publicSearch: false });
|
||||
const bothPendingReconnect = buttonMarkupWithText(
|
||||
bothPendingMarkup,
|
||||
"Переподключаемся…",
|
||||
"Переподключение…",
|
||||
);
|
||||
assert.equal(bothPendingReconnect.length, 1);
|
||||
assert.match(bothPendingReconnect[0], /disabled/);
|
||||
@@ -5676,7 +5676,7 @@ test("an explicit network action keeps one disabled Step-2 form with an in-place
|
||||
assert.match(markup, /Устройство выбрано/);
|
||||
assert.match(markup, /XGR-A46BE7/);
|
||||
assert.match(markup, /<span>02<\/span>/);
|
||||
assert.match(markup, /Применяем настройки…/);
|
||||
assert.match(markup, /Применение настроек…/);
|
||||
assert.match(markup, /FIELD-NET/);
|
||||
assert.match(markup, /Пароль передан/);
|
||||
assert.doesNotMatch(markup, /secret/);
|
||||
@@ -6204,7 +6204,7 @@ test("read-only reconnect keeps its card and loader across a transient projectio
|
||||
const pendingMarkup = renderToStaticMarkup(tree);
|
||||
const pendingReconnect = buttonMarkupWithText(
|
||||
pendingMarkup,
|
||||
"Переподключаемся…",
|
||||
"Переподключение…",
|
||||
);
|
||||
assert.equal(pendingReconnect.length, 1);
|
||||
assert.match(pendingReconnect[0], /disabled/);
|
||||
@@ -6845,7 +6845,7 @@ test("applied-network recovery spends the old intent and admits only explicit se
|
||||
/onClick=\{\(\) => void repeatDeviceScan\(\{\s*appliedRecoveryEscape: true/,
|
||||
);
|
||||
assert.match(source, /Начать новый поиск Bluetooth/);
|
||||
assert.match(source, /Подтверждаем управляющее подключение/);
|
||||
assert.match(source, /Подтверждение управляющего подключения/);
|
||||
assert.match(source, /BLE-команда не повторяется/);
|
||||
assert.match(
|
||||
source,
|
||||
@@ -6886,7 +6886,7 @@ test("applied-network recovery spends the old intent and admits only explicit se
|
||||
controller: provisioningController(settlingState),
|
||||
desiredMode: "bridge",
|
||||
});
|
||||
assert.match(settlingMarkup, /Подтверждаем управляющее подключение/);
|
||||
assert.match(settlingMarkup, /Подтверждение управляющего подключения/);
|
||||
assert.match(settlingMarkup, /BLE-команда не повторяется/);
|
||||
assert.doesNotMatch(settlingMarkup, /Сеть (?:готова|настроена)|Сетевые настройки уже применены/);
|
||||
assert.equal(
|
||||
|
||||
Reference in New Issue
Block a user