fix(junction): resolve complex handle preview roads

This commit is contained in:
que01 committed 2026-09-08 16:16:59 +08:00
1 parent bf26a74a33
commit 36a8291c05
2 files changed
+19

No files matched your search

+8
View File
@@ -263,6 +263,14 @@ test.describe('workbench editing shell', () => {
await expect(workspace.getByText(/车行道宽度/).first()).toBeVisible();
await expect(workspace.getByText(/车行道收口距离/).first()).toBeVisible();
await expect(workspace.getByText(/角部圆角/).first()).toBeVisible();
const parameterInput = workspace.locator('.parameter-input').first();
const parameterValue = Number(await parameterInput.inputValue());
const previewRequest = page.waitForRequest(
(request) => request.method() === 'POST' && request.url().endsWith('/api/edit-preview'),
);
await parameterInput.fill(String(parameterValue + 0.1));
await previewRequest;
await expect(parameterInput).toHaveValue(String(parameterValue + 0.1));
await page.reload();
await expect(armButtons).toHaveCount(structure.arms.length);
await expect(armButtons.first()).toHaveAttribute('aria-pressed', 'false');