feat: create parties outside brief concepts

This commit is contained in:
2026-08-14 18:17:31 +02:00
parent 57c8c91f21
commit 5d59af1dd9
3 changed files with 48 additions and 10 deletions
+10 -2
View File
@@ -131,11 +131,19 @@ test('move, folder expansion, empty-board pan, desktop wheel zoom, mobile pinch,
await organizationConcept.getByRole('button', { name: 'EDIT DOSSIER', exact: true }).click()
await page.getByLabel('Organization type').selectOption('public_body')
await waitForSave(page, () => page.getByRole('button', { name: 'SAVE DOSSIER', exact: true }).click())
await page.getByRole('button', { name: 'CREATE PARTY NOT LISTED ABOVE', exact: true }).click()
await expect(page.getByText('Create party dossier', { exact: true })).toBeVisible()
await page.getByLabel('Party type').selectOption('person')
await page.getByLabel('Party name').fill('Mara Elise Voss')
await page.getByLabel('Party summary').fill('Identified by the investigator outside the supplied concept list.')
await page.locator('.party-editor .folder-members input[type="checkbox"]').first().check()
await waitForSave(page, () => page.getByRole('button', { name: 'SAVE DOSSIER', exact: true }).click())
await expect(page.locator('.brief-panel')).toBeVisible()
await page.getByRole('button', { name: 'RETURN TO BOARD', exact: true }).click()
await page.reload()
await expect(page.locator('.brief-panel')).toBeHidden()
await expect(page.locator('.evidence-card.party')).toHaveCount(2)
await expect(page.locator('.evidence-card.party')).toContainText(['Ada Lovelace', 'Difference Engine Bureau'])
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 page.getByRole('button', { name: 'NEW EVENT', exact: true }).click()
await expect(page.getByText('Edit reconstructed event')).toBeVisible()