From 56f2eb152b518eb20706bcdcd71703c8e29f599b Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Tue, 10 Nov 2026 21:17:09 -0800 Subject: [PATCH] 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 --- tests/e2e/automation-prompt-disclosure.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/automation-prompt-disclosure.spec.ts b/tests/e2e/automation-prompt-disclosure.spec.ts index 345afcfc219..798ab45bc22 100644 --- a/tests/e2e/automation-prompt-disclosure.spec.ts +++ b/tests/e2e/automation-prompt-disclosure.spec.ts @@ -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')