test(web): cover collapsing and expanding the question card

Two new QuestionComposer cases: the collapse toggle hides the option list
and leaves the header strip, and collapsing between answering preserves
both the picked draft and the current question position through a full
submit; re-expanding does not steal focus back into the textarea. Refresh
the question-composer and steering web e2e goldens for the new header
button.
This commit is contained in:
GeeeekExplorer
2026-08-12 12:18:28 +08:00
parent 4b25b0e76d
commit db959a0879
4 changed files with 45 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
- region "Which color do you prefer?":
- text: Pick one
- heading "Which color do you prefer?" [level=2]
- button "Collapse the question card" [expanded]:
- img
- button "Dismiss all questions":
- img
- group:

View File

@@ -1,6 +1,8 @@
- region "Which color do you prefer?":
- text: Pick one
- heading "Which color do you prefer?" [level=2]
- button "Collapse the question card" [expanded]:
- img
- button "Dismiss all questions":
- img
- group:

View File

@@ -32,6 +32,8 @@
- region "Ready to continue?":
- text: Checkpoint
- heading "Ready to continue?" [level=2]
- button "Collapse the question card" [expanded]:
- img
- button "Dismiss all questions":
- img
- radiogroup: