Animate mugshot party identification
This commit is contained in:
@@ -190,6 +190,26 @@ test('move, folder expansion, empty-board pan, desktop wheel zoom, mobile pinch,
|
||||
await expect(page.locator('.evidence-card.party')).toHaveCount(3)
|
||||
await expect(page.locator('.evidence-card.party')).toContainText(['Ada Lovelace', 'Difference Engine Bureau', 'Mara Elise Voss'])
|
||||
|
||||
await file.dblclick()
|
||||
await page.getByRole('button',{ name:'TYPE',exact:true }).click()
|
||||
await waitForSave(page,() => page.getByRole('menuitemradio',{ name:/Mugshot/ }).click())
|
||||
await expect(file.locator('.mugshot-caption')).toHaveText('')
|
||||
await page.getByRole('button',{ name:'Close document',exact:true }).click()
|
||||
const adaParty=page.locator('.evidence-card.party').filter({ hasText:'Ada Lovelace' })
|
||||
await adaParty.click()
|
||||
await page.getByRole('button',{ name:'Red thread' }).click()
|
||||
await file.click()
|
||||
await expect(page.getByLabel('Thread tag')).toHaveValue('Identified as…')
|
||||
await waitForSave(page,() => page.getByRole('button',{ name:'ADD TAG & TIGHTEN' }).click())
|
||||
await expect(file).toHaveAttribute('data-identified-party-id',/\S+/)
|
||||
await expect(file.locator('.mugshot-caption')).toContainText('Ada Lovelace')
|
||||
await page.reload()
|
||||
await expect(file.locator('.mugshot-caption')).toContainText('Ada Lovelace')
|
||||
await adaParty.getByRole('button',{ name:'EDIT DOSSIER',exact:true }).click()
|
||||
await page.getByLabel('Party name').fill('Ada Byron Lovelace')
|
||||
await waitForSave(page,() => page.getByRole('button',{ name:'SAVE DOSSIER',exact:true }).click())
|
||||
await expect(file.locator('.mugshot-caption')).toContainText('Ada Byron Lovelace')
|
||||
|
||||
await page.getByRole('button', { name: 'NEW EVENT', exact: true }).click()
|
||||
await expect(page.getByText('Edit reconstructed event')).toBeVisible()
|
||||
await page.getByLabel('Event title').fill('The browser clue was connected')
|
||||
|
||||
Reference in New Issue
Block a user