fix(map): align canonical map actions
This commit is contained in:
@@ -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="Сбросить камеру"/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user