fix(map): align canonical map actions

This commit is contained in:
DCCONSTRUCTIONS
2026-07-29 17:00:50 +03:00
parent 8e3710b493
commit f2a4dfe863
3 changed files with 69 additions and 59 deletions
@@ -1,4 +1,5 @@
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { after, before, test } from "node:test";
import { createServer } from "vite";
@@ -105,3 +106,16 @@ test("map view fails closed on credentials, runtime URLs and unbound selection",
/stable subject id|стабильный subject id/i,
);
});
test("map workspace keeps the canonical top actions without a bottom toolbar", async () => {
const source = await readFile(
new URL("../src/workspaces/map/WorldMapWorkspace.tsx", import.meta.url),
"utf8",
);
assert.doesNotMatch(source, /<Toolbar/);
assert.match(source, /className="mission-map__map-actions"/);
assert.match(source, /label="Настройки карты"/);
assert.match(source, /label="Слои карты"/);
assert.doesNotMatch(source, /label="Сбросить камеру"/);
});