F10 SLICE-4: host E2E for interactive review (open/toggle/propose→accept→reject/clean-editor/hidden-F6/status); update obsolete F9/toggle suites (#29)
Adds test/e2e/suite/f10Review.test.ts covering the F10 flow: open preview (mode "on", fresh baseline all-unchanged), type → cw-by-human span, propose → cw-proposal block with ✓/✗, accept → lands + baseline advances + block clears, reject → vanishes + doc untouched, toggle off → renderPlain has no cw- marks, status-bar PUC-6 (indicator with no panel, hidden once opened), and the clean-editor INV-32 facts (retired toggleAttribution, F6 ctrl+alt+d hidden). Rewrites the obsolete F9 authorship-mode test as an F10 review test (cw-by-claude in the on-state render; getMode defaults to "on"). Updates attribution.test.ts (drops the retired isVisible/toggleAttribution toggle, asserts the toggle is gone) and noWorkspace.test.ts (toggleAttribution + acceptProposal/rejectProposal are retired, preview-only — INV-32). Honesty fix in the status-bar seam: hideStatus() clears statusItem.text so statusText() reports undefined when the indicator is hidden (it previously returned its stale last value after a panel opened). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,14 +29,20 @@ suite("no-workspace authoring (F8 — real folder-less, #8 lineage)", () => {
|
||||
"cowriting.resolveThread",
|
||||
"cowriting.reopenThread",
|
||||
"cowriting.editSelection",
|
||||
"cowriting.toggleAttribution",
|
||||
"cowriting.applyAgentEdit",
|
||||
"cowriting.acceptProposal",
|
||||
"cowriting.rejectProposal",
|
||||
"cowriting.proposeAgentEdit",
|
||||
]) {
|
||||
assert.ok(all.includes(command), `${command} is registered`);
|
||||
}
|
||||
// F10 (INV-32): proposals are preview-only — the in-editor accept/reject
|
||||
// commands and the attribution toggle were retired (no editor decorations).
|
||||
for (const retired of [
|
||||
"cowriting.toggleAttribution",
|
||||
"cowriting.acceptProposal",
|
||||
"cowriting.rejectProposal",
|
||||
]) {
|
||||
assert.ok(!all.includes(retired), `${retired} is retired (F10 preview-only)`);
|
||||
}
|
||||
});
|
||||
|
||||
test("authoring works folder-less: propose→accept on an untitled buffer routes to global storage (F8)", async () => {
|
||||
|
||||
Reference in New Issue
Block a user