feat: add configurable timeline range
This commit is contained in:
@@ -33,6 +33,18 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
|
||||
await expect(page.getByRole('heading', { name: 'The Glass Harbor Diversion' })).toBeVisible()
|
||||
await expect(page.locator('.evidence-card.folder')).toHaveCount(3)
|
||||
await expect(page.locator('.timeline .marker')).toHaveCount(8)
|
||||
await expect(page.locator('.timeline-label button')).toHaveText('1987-10-01 — 1987-10-31')
|
||||
const dispatchMarker = await page.getByRole('button', { name: '1987-10-16 — Carrier Dispatch Manifest · H&F 14', exact: true }).boundingBox()
|
||||
const auctionMarker = await page.getByRole('button', { name: '1987-10-24 — Meridian Maritime Auction · Lot 117', exact: true }).boundingBox()
|
||||
expect(dispatchMarker).not.toBeNull()
|
||||
expect(auctionMarker).not.toBeNull()
|
||||
expect(auctionMarker!.x - dispatchMarker!.x).toBeGreaterThan(100)
|
||||
|
||||
await page.getByRole('button', { name: 'TIMELINE', exact: true }).click()
|
||||
await page.getByLabel('Timeline start date').fill('1987-10-10')
|
||||
await page.getByLabel('Timeline end date').fill('1987-10-26')
|
||||
await waitForSave(page, () => page.getByRole('button', { name: 'APPLY RANGE', exact: true }).click())
|
||||
await expect(page.locator('.timeline-label button')).toHaveText('1987-10-10 — 1987-10-26')
|
||||
|
||||
await classify(page, 'Mara Voss', 'PERSON', 'Restoration project officer who sponsored the Warehouse 3 access pass.')
|
||||
await classify(page, 'Elias Vale', 'PERSON', 'Driver of H&F 14; transported CO-771 to Warehouse 3.')
|
||||
|
||||
Reference in New Issue
Block a user