Improve document tray navigation

This commit is contained in:
2026-08-23 23:29:10 +02:00
parent 31a4b52832
commit 5987bf6444
3 changed files with 35 additions and 12 deletions
+6 -2
View File
@@ -51,11 +51,15 @@ test('move, folder expansion, empty-board pan, desktop wheel zoom, mobile pinch,
await page.getByRole('button', { name: 'EVIDENCE', exact: true }).click()
const documentRow = page.locator('[data-document-row-id="22222222-2222-4222-8222-222222222222"]')
await documentRow.click()
await documentRow.locator('.doc-row-main').click()
await expect(documentRow).toHaveClass(/\bselected\b/)
await expect(page.locator('[data-temporal-id="widget:11111111-1111-4111-8111-111111111111"]')).toHaveClass(/\bdocument-located\b/)
await expect(page.locator('.document-locator-beam .document-locator-ray')).toBeVisible()
await documentRow.dblclick()
const transformBeforeLocate = await page.locator('.board').getAttribute('style')
await waitForSave(page, () => page.getByRole('button', { name: 'Locate Dated source image on board', exact: true }).click())
await expect.poll(() => page.locator('.board').getAttribute('style')).not.toEqual(transformBeforeLocate)
await expect(documentRow).toHaveClass(/\bselected\b/)
await documentRow.locator('.doc-row-main').dblclick()
await expect(page.getByRole('button', { name: 'Close document', exact: true })).toBeVisible()
await page.getByRole('button', { name: 'Close document', exact: true }).click()
await page.getByRole('button', { name: 'Close documents', exact: true }).click()