refactor: reuse luggage tags for thread labels

This commit is contained in:
2026-08-14 17:02:17 +02:00
parent a4b22a574b
commit ccef0955d4
4 changed files with 31 additions and 13 deletions
+8 -1
View File
@@ -94,7 +94,14 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
await expect(page.locator('.story-strip')).toContainText('CO-771 was diverted to Warehouse 3')
await expect(page.locator('.event-support-lines line')).toHaveCount(6)
await expect(page.locator('.connections path')).toHaveCount(1)
await expect(page.locator('.thread-tag')).toContainText('Proof Elias is the driver')
const relationTag = page.locator('.thread-tag')
await expect(relationTag).toContainText('Proof Elias is the driver')
await relationTag.click()
await expect(relationTag).toHaveClass(/\bexpanded\b/)
await expect(relationTag).toHaveAttribute('aria-expanded', 'true')
await relationTag.click()
await expect(page.getByText('Edit red thread')).toBeVisible()
await page.getByRole('button', { name: 'Close thread editor', exact: true }).click()
const solved = await (await request.get(`/api/levels/${playable.id}`)).json()
expect(solved.connections).toContainEqual(expect.objectContaining({ label: 'Proof Elias is the driver', tightness: 85 }))