Adding changes to luggage tag
This commit is contained in:
@@ -153,9 +153,6 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
|
||||
expect(tagAfter).not.toBeNull()
|
||||
expect(Math.abs(tagAfter!.x - tagBefore!.x) + Math.abs(tagAfter!.y - tagBefore!.y)).toBeGreaterThan(20)
|
||||
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()
|
||||
expect(await page.getByRole('slider', { name: 'Tag position', exact: true }).inputValue()).not.toBe('50')
|
||||
await page.locator('.tag-style-picker input[value="compact"]').check()
|
||||
@@ -168,9 +165,8 @@ test('a cloned Glass Harbor level can be solved without modifying its template',
|
||||
|
||||
const solved = await (await request.get(`/api/levels/${playable.id}`)).json()
|
||||
const eliasThread = solved.connections.find((connection: { label?: string }) => connection.label === 'Proof Elias is the driver')
|
||||
expect(eliasThread).toEqual(expect.objectContaining({ tightness: 85, tagStyle: 'compact', tagPosition: expect.any(Number), tagOffset: expect.any(Number) }))
|
||||
expect(eliasThread).toEqual(expect.objectContaining({ tightness: 85, tagStyle: 'compact', tagPosition: expect.any(Number), tagOffset: 0 }))
|
||||
expect(eliasThread.tagPosition).not.toBe(50)
|
||||
expect(Math.abs(eliasThread.tagOffset)).toBeLessThanOrEqual(19)
|
||||
expect(solved.connections.filter((connection: { label?: string }) => connection.label === 'Proves Voss owns Warehouse 3')).toHaveLength(2)
|
||||
|
||||
const template = await (await request.get('/api/templates')).json() as { slug: string; currentVersion: number }[]
|
||||
|
||||
Reference in New Issue
Block a user