mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
test(e2e): align prompt disclosure spec with the 8-line clamp
The redesign raised the collapsed prompt clamp from 4 to 8 lines and caps the prompt at 80ch, so the resize prompt no longer overflowed at 820px. Lengthen it so it wraps to ~11 lines at 820px and ~6 at 1400px, and assert line-clamp 8. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ const SHORT_NAME = 'synthetic-short-prompt-demo'
|
||||
const RESIZE_NAME = 'synthetic-resize-prompt-demo'
|
||||
const LONG_NAME = 'visual-proof-long-prompt-demo'
|
||||
const END_MARKER = 'SYNTHETIC-END-MARKER'
|
||||
const RESIZE_PROMPT = `Synthetic resize focus validation. ${'placeholder '.repeat(24)}`
|
||||
const RESIZE_PROMPT = `Synthetic resize focus validation. ${'placeholder '.repeat(48)}`
|
||||
|
||||
test('automation detail keeps short prompts readable and reveals a very long prompt at narrow width', async ({
|
||||
orcaPage
|
||||
@@ -106,7 +106,7 @@ test('automation detail keeps short prompts readable and reveals a very long pro
|
||||
lineClamp: getComputedStyle(element).webkitLineClamp
|
||||
}))
|
||||
expect(collapsedMetrics.scrollHeight).toBeGreaterThan(collapsedMetrics.clientHeight)
|
||||
expect(collapsedMetrics.lineClamp).toBe('4')
|
||||
expect(collapsedMetrics.lineClamp).toBe('8')
|
||||
|
||||
await showMore.focus()
|
||||
await orcaPage.keyboard.press('Enter')
|
||||
|
||||
Reference in New Issue
Block a user