feat: add resizable desktop panes
This commit is contained in:
@@ -75,7 +75,7 @@ test('task detail paper flow keeps approved responsive geometry and material', a
|
||||
expect(Math.abs((footerBox.y + footerBox.height) - (detailBox.y + detailBox.height))).toBeLessThanOrEqual(2)
|
||||
|
||||
if (viewport.width >= 931) {
|
||||
expect(metrics.width).toBeCloseTo(350, 0)
|
||||
expect(metrics.width).toBeCloseTo(Number(await page.getByRole('separator', { name: '调整任务详情宽度' }).getAttribute('aria-valuenow')), 0)
|
||||
const columns = await dateTime.locator('.task-detail-field').evaluateAll(elements => elements.map(element => element.getBoundingClientRect()))
|
||||
expect(columns[0].top).toBeCloseTo(columns[1].top, 0)
|
||||
expect(columns[1].left - columns[0].right).toBeCloseTo(10, 0)
|
||||
|
||||
Reference in New Issue
Block a user