Improve document tray navigation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user