refactor: reuse luggage tags for thread labels
This commit is contained in:
@@ -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 }))
|
||||
|
||||
Reference in New Issue
Block a user