Repository navigation
feat: add end-to-end tests for multiple-choice question handling in a… - #640
Conversation
…gent interactions
There was a problem hiding this comment.
ℹ️ No critical issues — one documentation gap worth closing.
Reviewed changes
- New e2e spec (
apps/e2e/tests/projects/agent-questions.spec.ts) — 14 Playwright tests covering plain-text mention linking in task/document comments, the document-mention notification, thepaca-askcard in the task and document activity panes, and the chat ask card resolved from the tool result when the call's input is empty. - Matching Gherkin file (
apps/e2e/features/projects/agent-questions.feature) — the scenario text of record; not executed by the runner in this repo.
ℹ️ The feature file under-describes the document-side card scenarios
The spec's header declares // spec: features/projects/agent-questions.feature, but the A question in a comment is shown as a card rule lists five scenarios while the spec runs eight tests — the multi-select and free-text cases are exercised for both task and doc, and only the option-pick has an explicit document scenario ("The same card works on a document"). The rule's Background ("a comment carrying a 'paca-ask' question with options 'Test 1', 'Test 2', 'Test 3' exists") also reads as pre-seeded, whereas each test posts its own comment. Since the .feature files are the spec of record here, the file will drift from what actually runs; worth adding the two document scenarios (and noting inline-code alongside the e-mail/code-block case, which the spec covers but the file does not).
Technical details
# Feature file does not describe the full card coverage
## Affected sites
- `apps/e2e/features/projects/agent-questions.feature` (card rule, new file lines ~52–81) — five scenarios; the spec runs four tests per kind for `task` and `doc`, so document-side multi-select and free-text have no scenario text.
- `apps/e2e/features/projects/agent-questions.feature` (Code blocks scenario, new file line ~39) — mentions `[email protected]` and a code block, but not the inline-code `@admin` the spec's "E-mail addresses, inline code and code blocks are left alone" test also asserts.
## Required outcome
- The `.feature` scenarios reflect every behavior the matching spec asserts, so the two stay in sync per the repo convention that specs are expected to track their feature file.
## Suggested approach (optional)
- Add document-side scenarios for the multi-select and free-text answer cases (or state that the card rule applies to both targets), and add inline code to the code-blocks/e-mail scenario.deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
…th improved scenarios and options handling
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Feature file now matches the spec 1:1 — the comment-card rule became
Scenario Outlines running each case for both thetaskanddocumenttargets, closing the documentation gap raised in the prior review. - Added a note that the card is identical on a task and on a document's "Comments & activity" panel.
- Fixed the mention rule's
Backgroundto create the project/task/document instead of implying a pre-seeded comment, and extended the e-mail/code-block scenario to cover inline code.
The prior review left only an informational body finding (no inline threads), and commit 8747cfca addresses all three parts of it. The Gherkin now covers all 14 tests — 4 mention scenarios, 1 notification, 4 outlines × 2 targets for the comment card, and 1 chat scenario.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Summary
End-to-end coverage for the agent multiple-choice question feature merged in #639: the
ask_user_questioncard in chat and in task/document comments, plain-text@mentionsturning into mention badges, and the in-app notification for a person mentioned in a document comment.Changes
apps/e2e/tests/projects/agent-questions.spec.ts— 14 Playwright tests.apps/e2e/features/projects/agent-questions.feature— the matching Gherkin scenarios.Scenarios
@usernameand@Name (id: …)in task comments, and@usernamein document comments, are stored as realteamMentionchips. Unknown names, e-mail addresses, inline code and code blocks stay plain text.paca-askpayload;Notes
conversations.spec.tsdoes.Testing
Against the e2e stack (
deploy/docker-compose.e2e.yml, built from this branch):14 passed with 1 worker and with 3 workers.
biome checkis clean on the spec. Only the chromium project was run.🤖 Generated with Claude Code