From 10f3435b0098b69c6b3729546e9cfc45814ad012 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 18 Oct 2026 22:30:01 +0200 Subject: [PATCH] Test: the saved Monitor picture with a model loaded is headed by the logo and the model and time line (NativeMonitor is not used by any screen) --- apps/host/tests/split-qa2c-export.test.mjs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 apps/host/tests/split-qa2c-export.test.mjs diff --git a/apps/host/tests/split-qa2c-export.test.mjs b/apps/host/tests/split-qa2c-export.test.mjs new file mode 100644 index 00000000..4896141e --- /dev/null +++ b/apps/host/tests/split-qa2c-export.test.mjs @@ -0,0 +1,29 @@ +// The saved Monitor picture when a model is loaded (the normal case) starts with the Strata logo alone and the models/time line. +// (QA follow-up: it was checked with a loaded model through the real page; the picture is the one of the Monitor screen, which shows the +// loaded models. NativeMonitor.tsx is not used by any screen, so it needs no header.) +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import { readdir } from 'node:fs/promises'; + +const read = path => readFile(new URL(path, import.meta.url), 'utf8').then(s => s.replace(/\r\n/g, '\n')); + +test('with a model loaded the picture is headed by the logo and the line " ยท