feat(junction): edit complex cutbacks and corners
This commit is contained in:
1 parent
d0e1f62f2b
commit
80f122be46
15 files changed
+354
-38
No files matched your search
@@ -247,13 +247,17 @@ test.describe('workbench editing shell', () => {
|
||||
expect(scoped.handles.handles.length).toBeGreaterThan(0);
|
||||
expect(
|
||||
scoped.handles.handles.every(
|
||||
(handle: { kind: string; editable: boolean }) => handle.kind === 'cluster-carriageway-width' && handle.editable,
|
||||
(handle: { kind: string; editable: boolean }) =>
|
||||
['cluster-carriageway-width', 'cluster-carriageway-cutback', 'cluster-corner-radius'].includes(handle.kind) &&
|
||||
handle.editable,
|
||||
),
|
||||
).toBe(true);
|
||||
expect(scoped.junctionStructure.topologyFingerprint).toBe(structure.topologyFingerprint);
|
||||
await page.getByRole('button', { name: '开启编辑模式' }).click();
|
||||
await expect(workspace.getByText('路口参数', { exact: true })).toBeVisible();
|
||||
await expect(workspace.getByText(/车行道宽度/).first()).toBeVisible();
|
||||
await expect(workspace.getByText(/车行道收口距离/).first()).toBeVisible();
|
||||
await expect(workspace.getByText(/角部圆角/).first()).toBeVisible();
|
||||
await page.reload();
|
||||
await expect(armButtons).toHaveCount(structure.arms.length);
|
||||
await expect(armButtons.first()).toHaveAttribute('aria-pressed', 'false');
|
||||
|
||||
Reference in new issue
Block a user