Implement Scene 7 evidence goal flow

This commit is contained in:
2026-08-22 16:02:42 +02:00
parent 34aa23237e
commit a7f99a2a39
31 changed files with 1620 additions and 52 deletions
+5 -4
View File
@@ -90,7 +90,7 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
const elias = page.locator('.evidence-card.party').filter({ has: page.getByRole('heading', { name: 'Elias Vale', exact: true }) })
const movement = page.locator('.evidence-card.folder').filter({ hasText: 'MOVEMENT RECORDS' })
await waitForSave(page, () => page.getByRole('button', { name: 'Zoom out', exact: true }).click())
await waitForSave(page, () => movement.getByRole('button', { name: 'OPEN', exact: true }).click())
await waitForSave(page, () => movement.dblclick())
const manifest = page.locator('.source-file-widget.open').filter({ hasText: 'Carrier Dispatch Manifest' })
await expect(manifest.locator('.text-source-excerpt')).toContainText('HARBOR & FELL LOGISTICS')
await expect(manifest.locator('.source-file-preview svg')).toHaveCount(0)
@@ -115,7 +115,7 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
await expect(page.locator('.connections g.tightening path')).toBeVisible()
const procurement = page.locator('.evidence-card.folder').filter({ hasText: 'PROCUREMENT & OWNERSHIP' })
await waitForSave(page, () => procurement.getByRole('button', { name: 'OPEN', exact: true }).click())
await waitForSave(page, () => procurement.dblclick())
const companyRegister = page.locator('.source-file-widget.open').filter({ hasText: 'Company Register Extract' })
const memorandum = page.locator('.source-file-widget.open').filter({ hasText: 'Delivery Redirection Memorandum' })
const photograph = page.locator('.source-file-widget.open').filter({ hasText: 'Warehouse 3 Security Photograph' })
@@ -128,6 +128,7 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
await expect(threadEditor.getByText('Delivery Redirection Memorandum', { exact: true })).toBeVisible()
await page.getByLabel('Thread tag').fill('Proves Voss owns Warehouse 3')
await waitForSave(page, () => page.getByRole('button', { name: 'ADD TAG & TIGHTEN', exact: true }).click())
await companyRegister.click()
await page.getByRole('button', { name: 'Red thread', exact: true }).click()
await photograph.click()
await expect(threadEditor.getByText('Company Register Extract · Voss Antiquities Ltd', { exact: true })).toBeVisible()
@@ -177,7 +178,7 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
const authoringLevels = levels.filter(level => level.id.startsWith('glass-harbor-authoring-'))
expect(authoringLevels).toHaveLength(1)
const untouched = await (await request.get(`/api/levels/${authoringLevels[0].id}?edit=1`)).json()
expect(untouched.evidence.filter((item: { type: string }) => item.type === 'party')).toHaveLength(0)
expect(untouched.evidence.filter((item: { type: string }) => item.type === 'event')).toHaveLength(0)
expect(untouched.exhibits.filter((item: { type: string }) => item.type === 'party')).toHaveLength(0)
expect(untouched.exhibits.filter((item: { type: string }) => item.type === 'event')).toHaveLength(0)
expect(untouched.brief.concepts.every((concept: { resolvedPartyExhibitId?: string }) => !concept.resolvedPartyExhibitId)).toBe(true)
})