fix(workbench): keep map visible in junction tools

This commit is contained in:
que01 committed 2026-09-03 14:04:13 +08:00
1 parent c9d9e45f48
commit e6b822416d
2 files changed
+17 -2

No files matched your search

+2
View File
@@ -115,6 +115,8 @@ test.describe('workbench editing shell', () => {
expect(nodeId).toBeTruthy();
await page.goto(`/junction/node/${encodeURIComponent(nodeId!)}`);
await expect(page.getByLabel('路口编辑工作区')).toBeVisible();
await expect(page.getByLabel('道路地图')).toBeVisible();
expect((await page.getByLabel('道路地图').boundingBox())?.width).toBeGreaterThan(0);
await expect(page.getByText(`路口节点 ${nodeId}`)).toBeVisible();
await expect(page.getByText('设施与验证', { exact: true })).toBeVisible();
await expect(page.getByText('当前为浏览模式,开启编辑后可调整路口几何参数')).toBeVisible();